s3: Add an async smbsock_connect
authorVolker Lendecke <vl@samba.org>
Sun, 12 Dec 2010 17:55:06 +0000 (18:55 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 22 Dec 2010 16:04:14 +0000 (09:04 -0700)
commitdc4bd1d1ca15464108bb1411a600dd2aef0f6b2e
treeb5e08f21555180370be90508fbbd38b4052cf26e
parentafb73570d42d598b54d232b6b0504591413cdec1
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]