diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-15 10:28:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:50 -0500 |
commit | 21aafc3536cb8a172805f0dd5d23b100f1ecb493 (patch) | |
tree | a43565bc8dbf36083cb8067458e4cf153902313b /source4/lib/socket/socket.c | |
parent | f4e29ae1e9ad43f7cbc323d45590bafc94153da2 (diff) | |
download | samba-21aafc3536cb8a172805f0dd5d23b100f1ecb493.tar.gz samba-21aafc3536cb8a172805f0dd5d23b100f1ecb493.tar.xz 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.c')
-rw-r--r-- | source4/lib/socket/socket.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/socket/socket.c b/source4/lib/socket/socket.c index 9be6faf084..cc43348e79 100644 --- a/source4/lib/socket/socket.c +++ b/source4/lib/socket/socket.c @@ -107,6 +107,14 @@ NTSTATUS socket_connect(struct socket_context *sock, return sock->ops->fn_connect(sock, my_address, my_port, server_address, server_port, flags); } +NTSTATUS socket_connect_complete(struct socket_context *sock, uint32_t flags) +{ + if (!sock->ops->fn_connect_complete) { + return NT_STATUS_NOT_IMPLEMENTED; + } + return sock->ops->fn_connect_complete(sock, flags); +} + NTSTATUS socket_listen(struct socket_context *sock, const char *my_address, int port, int queue_size, uint32_t flags) { if (sock->type != SOCKET_TYPE_STREAM) { |