win32file.ConnectEx
(int, int) = ConnectEx(s, name , Overlapped , SendBuffer )
Version of connect that uses Overlapped I/O ConnectEx(sock, (addr, port), buf, overlap)
Parameters
Return Value
Returns the completion code and number of bytes sent. The completion code will be 0 for a completed operation, or ERROR_IO_PENDING for a pending overlapped operation.If the platform does not support ConnectEx (eg, Windows 2000), an exception will be thrown indicating the WSAIoctl function (which is used to fetch the function pointer) failed with error code WSAEINVAL (10022).