Added IOCP integration for Nsock

This commit is contained in:
tudor 2016-08-09 12:44:55 +00:00
parent 3ba4a87c75
commit 1aa7958e23
11 changed files with 949 additions and 3 deletions

View file

@ -257,7 +257,7 @@ int inheritable_socket(int af, int style, int protocol) {
/* WSASocket is just like socket, except that the sockets it creates are
inheritable by subprocesses (such as are created by CreateProcess), while
those created by socket are not. */
return WSASocket(af, style, protocol, NULL, 0, 0);
return WSASocket(af, style, protocol, NULL, 0, WSA_FLAG_OVERLAPPED);
#else
return socket(af, style, protocol);
#endif