1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 14:39:02 +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

@@ -253,7 +253,7 @@ void nsock_connect_internal(struct npool *ms, struct nevent *nse, int type, int
memcpy(&iod->peer, ss, sslen);
iod->peerlen = sslen;
if (connect(iod->sd, (struct sockaddr *)ss, sslen) == -1) {
if (ms->engine->io_operations->iod_connect(ms, iod->sd, (struct sockaddr *)ss, sslen) == -1) {
int err = socket_errno();
if (proto == IPPROTO_UDP || (err != EINPROGRESS && err != EAGAIN)) {