summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-23 15:20:22 +0100
committerVolker Lendecke <vlendec@samba.org>2010-12-29 23:30:44 +0100
commit86ff8cf227c759189080ade0deb4f5b184bb14f7 (patch)
tree86bfa637c324bb2dba67e797f39b8a4d32e18cb9 /source3/include
parent65f4f22cb4a201fb3f4f4adbb576d3a8909d4bfd (diff)
downloadsamba-86ff8cf227c759189080ade0deb4f5b184bb14f7.tar.gz
samba-86ff8cf227c759189080ade0deb4f5b184bb14f7.tar.bz2
samba-86ff8cf227c759189080ade0deb4f5b184bb14f7.zip
s3: Allow more control over smbsock_[any_]connect
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Dec 29 23:30:44 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h31
1 files changed, 22 insertions, 9 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index c469888940..385a5371be 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5621,24 +5621,37 @@ int fncall_recv(struct tevent_req *req, int *perr);
struct tevent_req *smbsock_connect_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
const struct sockaddr_storage *addr,
+ uint16_t port,
const char *called_name,
- const char *calling_name);
+ int called_type,
+ const char *calling_name,
+ int calling_type);
NTSTATUS smbsock_connect_recv(struct tevent_req *req, int *sock,
- uint16_t *port);
-NTSTATUS smbsock_connect(const struct sockaddr_storage *addr,
- const char *called_name, const char *calling_name,
- int *pfd, uint16_t *port);
+ uint16_t *ret_port);
+NTSTATUS smbsock_connect(const struct sockaddr_storage *addr, uint16_t port,
+ const char *called_name, int called_type,
+ const char *calling_name, int calling_type,
+ int *pfd, uint16_t *ret_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);
+ int *called_types,
+ const char **calling_names,
+ int *calling_types,
+ size_t num_addrs, uint16_t port);
NTSTATUS smbsock_any_connect_recv(struct tevent_req *req, int *pfd,
- size_t *chosen_index, uint16_t *port);
+ size_t *chosen_index, uint16_t *chosen_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);
+ const char **called_names,
+ int *called_types,
+ const char **calling_names,
+ int *calling_types,
+ size_t num_addrs,
+ uint16_t port,
+ int *pfd, size_t *chosen_index,
+ uint16_t *chosen_port);
/* The following definitions come from rpc_server/srv_samr_nt.c */
NTSTATUS access_check_object( struct security_descriptor *psd, struct security_token *token,