1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

Added IOCP integration for Nsock, engine IOCP is the default engine on Windows

This commit is contained in:
tudor
2016-08-22 19:15:13 +00:00
parent 2fb52b456e
commit 1e1f744186
12 changed files with 894 additions and 58 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