1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-31 12:23:52 +03:00

r10677: Add smb_composite_connectmulti: Send out multiple SYN packets at once, use the

first one that replies correctly.

Add a talloc context to smb_composite_connect()

Volker
This commit is contained in:
Volker Lendecke
2005-10-02 10:02:35 +00:00
committed by Gerald (Jerry) Carter
parent c755788484
commit 6b88de182e
9 changed files with 250 additions and 12 deletions

View File

@@ -150,3 +150,21 @@ struct smb_composite_appendacl {
struct security_descriptor *sd;
} out;
};
/*
a composite API to fire connect() calls to multiple targets, picking the
first one.
*/
struct smb_composite_connectmulti {
struct {
int num_dests;
const char **hostnames;
const char **addresses;
int *ports; /* Either NULL for lp_smb_ports() per
* destination or a list of explicit ports */
} in;
struct {
struct smbcli_socket *socket;
} out;
};