summaryrefslogtreecommitdiff
path: root/source4/lib/socket/socket.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-15 10:28:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:50 -0500
commit21aafc3536cb8a172805f0dd5d23b100f1ecb493 (patch)
treea43565bc8dbf36083cb8067458e4cf153902313b /source4/lib/socket/socket.h
parentf4e29ae1e9ad43f7cbc323d45590bafc94153da2 (diff)
downloadsamba-21aafc3536cb8a172805f0dd5d23b100f1ecb493.tar.gz
samba-21aafc3536cb8a172805f0dd5d23b100f1ecb493.tar.bz2
samba-21aafc3536cb8a172805f0dd5d23b100f1ecb493.zip
r4753: added the ability for the generic socket library to handle async
connect(). This required a small API change (the addition of a socket_connect_complete() method) (This used to be commit b787dd166f5cca82b3710802eefb41e0a8851fc3)
Diffstat (limited to 'source4/lib/socket/socket.h')
-rw-r--r--source4/lib/socket/socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/socket/socket.h b/source4/lib/socket/socket.h
index 7a8d335962..7dd8c0ae17 100644
--- a/source4/lib/socket/socket.h
+++ b/source4/lib/socket/socket.h
@@ -39,6 +39,10 @@ struct socket_ops {
const char *server_address, int server_port,
uint32_t flags);
+ /* complete a non-blocking connect */
+ NTSTATUS (*fn_connect_complete)(struct socket_context *sock,
+ uint32_t flags);
+
/* server ops */
NTSTATUS (*fn_listen)(struct socket_context *sock,
const char *my_address, int port, int queue_size, uint32_t flags);