summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-03 19:50:05 +0100
committerVolker Lendecke <vl@samba.org>2009-01-04 16:42:40 +0100
commit19b783cce9edf7b616cd1a9d9dcb78a02791d89e (patch)
treea188cb7b2dac77c277c814f7c347cb851c47f7a9 /source3/include
parent1b328d98208d4245733dc8e04f6b81ab606ead8c (diff)
downloadsamba-19b783cce9edf7b616cd1a9d9dcb78a02791d89e.tar.gz
samba-19b783cce9edf7b616cd1a9d9dcb78a02791d89e.tar.bz2
samba-19b783cce9edf7b616cd1a9d9dcb78a02791d89e.zip
Async wrapper for open_socket_out_send/recv
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index dc63611514..957302c378 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1457,9 +1457,14 @@ int open_socket_in(int type,
int dlevel,
const struct sockaddr_storage *psock,
bool rebind);
-int open_socket_out(const struct sockaddr_storage *pss,
- uint16_t port,
- int timeout);
+NTSTATUS open_socket_out(const struct sockaddr_storage *pss, uint16_t port,
+ int timeout, int *pfd);
+struct async_req *open_socket_out_send(TALLOC_CTX *mem_ctx,
+ struct event_context *ev,
+ const struct sockaddr_storage *pss,
+ uint16_t port,
+ int timeout);
+NTSTATUS open_socket_out_recv(struct async_req *req, int *pfd);
bool open_any_socket_out(struct sockaddr_storage *addrs, int num_addrs,
int timeout, int *fd_index, int *fd);
int open_udp_socket(const char *host, int port);