tsocket: let tstream_inet_tcp_connect_recv() optionally return the used local address
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Oct 2010 21:31:41 +0000 (23:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 23 Oct 2010 06:49:30 +0000 (08:49 +0200)
commit79c6572256a01279d9e4f0b436d334f4fd739866
tree65afeb97733c86269e8c351c7cf8aacf330ffe5c
parentd2c653629cdc3df8549c6faabfcdbe3045cd013c
tsocket: let tstream_inet_tcp_connect_recv() optionally return the used local address

tstream_inet_tcp_connect_send() usually only gets no local port number
and it may use the wildcard address '0.0.0.0' or '::'.

tstream_inet_tcp_connect_recv() provides the used local address and port
which are used on the wire.

metze
lib/tsocket/tsocket.h
lib/tsocket/tsocket_bsd.c
source4/libcli/wrepl/winsrepl.c