Changeset 204 for branches/samba-3.2.x/source/lib/util_sock.c
- Timestamp:
- May 20, 2009, 6:46:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/lib/util_sock.c
r141 r204 1380 1380 } 1381 1381 1382 /**************************************************************************** 1383 Create an outgoing TCP socket to any of the addrs. This is for 1384 simultaneous connects to port 445 and 139 of a host or even a variety 1385 of DC's all of which are equivalent for our purposes. 1386 **************************************************************************/ 1382 /******************************************************************* 1383 Create an outgoing TCP socket to the first addr that connects. 1384 1385 This is for simultaneous connection attempts to port 445 and 139 of a host 1386 or for simultatneous connection attempts to multiple DCs at once. We return 1387 a socket fd of the first successful connection. 1388 1389 @param[in] addrs list of Internet addresses and ports to connect to 1390 @param[in] num_addrs number of address/port pairs in the addrs list 1391 @param[in] timeout time after which we stop waiting for a socket connection 1392 to succeed, given in milliseconds 1393 @param[out] fd_index the entry in addrs which we successfully connected to 1394 @param[out] fd fd of the open and connected socket 1395 @return true on a successful connection, false if all connection attempts 1396 failed or we timed out 1397 *******************************************************************/ 1387 1398 1388 1399 bool open_any_socket_out(struct sockaddr_storage *addrs, int num_addrs,
Note:
See TracChangeset
for help on using the changeset viewer.