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>
Sun, 26 Dec 2010 21:12:07 +0000 (22:12 +0100)
commit8b6b80ef591031ea6e394cebd6e0fdf8c7b8485a
tree708d5e98fb1791989011ad313c5396ea60cb0c7c
parent0b13028cb4d6fc2ff267df477b5c2c4291286a43
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.
source3/Makefile.in
source3/include/proto.h
source3/libsmb/smbsock_connect.c [new file with mode: 0644]