summaryrefslogtreecommitdiff
path: root/source3/lib/server_prefork.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-05-03 18:55:25 -0400
committerAndreas Schneider <asn@samba.org>2011-08-10 18:14:03 +0200
commitb9354f72291836e155ed5af56ab98b6a8537ceef (patch)
tree0ace51cfb36e9cf57a7306fb43fd752613f3a89a /source3/lib/server_prefork.h
parent4fef4fe4986245bfd0ac0c3a3d3a10d330bae09c (diff)
downloadsamba-b9354f72291836e155ed5af56ab98b6a8537ceef.tar.gz
samba-b9354f72291836e155ed5af56ab98b6a8537ceef.tar.bz2
samba-b9354f72291836e155ed5af56ab98b6a8537ceef.zip
s3-prefork: add asynchronous functions
To get a client connection it is now possible to use asynchronous functions. Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/lib/server_prefork.h')
-rw-r--r--source3/lib/server_prefork.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/lib/server_prefork.h b/source3/lib/server_prefork.h
index d6d7bf95c9..7e95602e81 100644
--- a/source3/lib/server_prefork.h
+++ b/source3/lib/server_prefork.h
@@ -74,3 +74,11 @@ int prefork_wait_for_client(struct pf_worker_data *pf,
int lock_fd, int listen_fd,
struct sockaddr *addr,
socklen_t *addrlen, int *fd);
+
+struct tevent_req *prefork_listen_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ struct pf_worker_data *pf,
+ int lock_fd, int listen_fd,
+ struct sockaddr *addr,
+ socklen_t *addrlen);
+int prefork_listen_recv(struct tevent_req *req, int *fd);