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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user