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:14:27 +0000 (22:14 +0100)
commit35bbc2231760badaf0debc9f8f39ebdf00cfe8ad
tree8541c762ea7b8001dcdaa835fa52cf552f8faa63
parent9b79de1553cfa57d24d1ac0316b814933ef3d33d
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]