summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-13 17:17:51 +0100
committerVolker Lendecke <vl@samba.org>2010-12-22 16:39:15 +0100
commitd8e3d0af9e52c46fa2ab37dc263ae3a5ea5ce020 (patch)
treeface67c87a31a5ce9a0894d000872a8f6fa5c243 /source3/include
parent49cd92b2186addebba79efffc435083e6086aab1 (diff)
downloadsamba-d8e3d0af9e52c46fa2ab37dc263ae3a5ea5ce020.tar.gz
samba-d8e3d0af9e52c46fa2ab37dc263ae3a5ea5ce020.tar.bz2
samba-d8e3d0af9e52c46fa2ab37dc263ae3a5ea5ce020.zip
s3: Add smbsock_any_connect
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 8577dc2798..817a56b26b 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5628,6 +5628,17 @@ NTSTATUS smbsock_connect(const struct sockaddr_storage *addr,
const char *called_name, const char *calling_name,
int *pfd, uint16_t *port);
+struct tevent_req *smbsock_any_connect_send(TALLOC_CTX *mem_ctx,
+ struct tevent_context *ev,
+ const struct sockaddr_storage *addrs,
+ const char **called_names,
+ size_t num_addrs);
+NTSTATUS smbsock_any_connect_recv(struct tevent_req *req, int *pfd,
+ size_t *chosen_index, uint16_t *port);
+NTSTATUS smbsock_any_connect(const struct sockaddr_storage *addrs,
+ const char **called_names, size_t num_addrs,
+ int *pfd, size_t *chosen_index, uint16_t *port);
+
/* The following definitions come from rpc_server/srv_samr_nt.c */
NTSTATUS access_check_object( struct security_descriptor *psd, struct security_token *token,
enum sec_privilege needed_priv_1, enum sec_privilege needed_priv_2,