summaryrefslogtreecommitdiff
path: root/source3/lib/server_prefork.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-07-19 15:07:42 -0400
committerAndreas Schneider <asn@samba.org>2011-08-10 18:14:04 +0200
commit227551a07bc1af29ff2e24d889ea7dd45d575773 (patch)
tree5a8b272ea593c53152ac2c358883e6172f4ce3e3 /source3/lib/server_prefork.h
parent2b33b438ba8cc6f89bf91e5a63bf0168d48be670 (diff)
downloadsamba-227551a07bc1af29ff2e24d889ea7dd45d575773.tar.gz
samba-227551a07bc1af29ff2e24d889ea7dd45d575773.tar.bz2
samba-227551a07bc1af29ff2e24d889ea7dd45d575773.zip
s3-prefork: Return tsocket_address for client and server
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/lib/server_prefork.h')
-rw-r--r--source3/lib/server_prefork.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/source3/lib/server_prefork.h b/source3/lib/server_prefork.h
index 2f25e557fa..d3ba919950 100644
--- a/source3/lib/server_prefork.h
+++ b/source3/lib/server_prefork.h
@@ -20,6 +20,7 @@
#include "system/network.h"
#include <tevent.h>
+#include "lib/tsocket/tsocket.h"
struct prefork_pool;
@@ -238,9 +239,6 @@ void prefork_set_sigchld_callback(struct prefork_pool *pfp,
* @param listen_fd_size The number of listening file descriptors
* @param listen_fds The array of listening file descriptors
* @param lock_fd The locking file descriptor
-* @param addr The structure that will hold the client address on
-* return
-* @param addrlen The structure length on return.
*
* @return The tevent request pointer or NULL on allocation errors.
*/
@@ -249,16 +247,21 @@ struct tevent_req *prefork_listen_send(TALLOC_CTX *mem_ctx,
struct pf_worker_data *pf,
int listen_fd_size,
int *listen_fds,
- int lock_fd,
- struct sockaddr *addr,
- socklen_t *addrlen);
+ int lock_fd);
/**
* @brief Returns the file descriptor after the new client connection has
* been accepted.
*
-* @param req The request
-* @param fd The new file descriptor.
+* @param req The request
+* @param mem_ctx The memory context for cli_addr and srv_addr
+* @param fd The new file descriptor.
+* @param srv_addr The server address in tsocket_address format
+* @param cli_addr The client address in tsocket_address format
*
* @return The error in case the operation failed.
*/
-int prefork_listen_recv(struct tevent_req *req, int *fd);
+int prefork_listen_recv(struct tevent_req *req,
+ TALLOC_CTX *mem_ctx, int *fd,
+ struct tsocket_address **srv_addr,
+ struct tsocket_address **cli_addr);
+