s3: Add an async smbsock_connect
authorVolker Lendecke <vl@samba.org>
Sun, 12 Dec 2010 17:55:06 +0000 (18:55 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 5 Mar 2011 13:34:46 +0000 (14:34 +0100)
commit6d3ff3bb143f07ed4a1ac237dbdde40bd4006e7a
tree372db7b6b526ba1add94e5037ae09d76916c5c8e
parent81333e1b9d67f58c05f44343a754376a0b5f4607
s3: Add an async smbsock_connect

This connects to 445 and after 5 milliseconds also to 139. It treats a netbios
session setup failure as equivalent as a TCP connect failure. So if 139 is
faster but fails the nb session setup, the 445 still has the chance to succeed.
(cherry picked from commit 8b6b80ef591031ea6e394cebd6e0fdf8c7b8485a)
source3/Makefile.in
source3/include/proto.h
source3/libsmb/smbsock_connect.c [new file with mode: 0644]