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>
Thu, 13 Jan 2011 16:58:53 +0000 (17:58 +0100)
commit607c00d9aff86a88afad1e5929fbc70414472814
tree1b172b5cf06e22db0b289f4ed3cc71aa16e6cb83
parent14e272c5022cb74b47d1e6021c8d919e3b354342
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 35bbc2231760badaf0debc9f8f39ebdf00cfe8ad)
source3/Makefile.in
source3/include/proto.h
source3/libsmb/smbsock_connect.c [new file with mode: 0644]