s4:lib/socket: add socket_connect_multi_ex_*
authorStefan Metzmacher <metze@samba.org>
Tue, 29 Nov 2011 15:25:03 +0000 (16:25 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 30 Nov 2011 12:41:08 +0000 (13:41 +0100)
commit706e10820d490e0865b73f66a8665951aa6a71e3
tree046a6f5dfc3595d9562d2f28210c1c513d8b39d0
parent99f2177e8fbf7f288fa896a0c64bfb6ae03b9ada
s4:lib/socket: add socket_connect_multi_ex_*

This add an async establish hook, that gets called
before a connection success is detected.

This can be used to do a NBT session request
and it makes sure that we don't cancel the connection
on port 445, just because the tcp connect on port
139 worked.

metze
source4/lib/socket/connect_multi.c
source4/lib/socket/socket.h