Connect is now non-blocking. Fixed problem in resolver thread where socket was closed.

This commit is contained in:
lotodore
2007-02-25 18:22:19 +00:00
parent d63588f54b
commit 82cf963f0a
6 changed files with 117 additions and 23 deletions
+2
View File
@@ -31,6 +31,7 @@
#define CLOSESOCKET closesocket
#define IOCTLSOCKET ioctlsocket
#define SOCKET_ERRNO() WSAGetLastError()
#define SOCKET_ERR_WOULDBLOCK WSAEWOULDBLOCK
#else
#define SOCKET int
#define SOCKET_ERROR -1
@@ -38,6 +39,7 @@
#define CLOSESOCKET close
#define SOCKET_ERRNO() errno
#define IOCTLSOCKET ioctl
#define SOCKET_ERR_WOULDBLOCK EWOULDBLOCK
#endif
#define IS_VALID_SOCKET(_s) ((_s) != INVALID_SOCKET)