1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 22:49:01 +00:00

Reverted the IOCP integration

This commit is contained in:
tudor
2016-08-11 18:58:03 +00:00
parent 074f99b291
commit 63b31682f4
11 changed files with 3 additions and 949 deletions

View File

@@ -64,10 +64,6 @@
#include <errno.h>
#include <string.h>
#if HAVE_IOCP
#include "nsock_iocp.h"
#endif
static int mksock_bind_addr(struct npool *ms, struct niod *iod) {
int rc;
@@ -256,12 +252,6 @@ void nsock_connect_internal(struct npool *ms, struct nevent *nse, int type, int
if (&iod->peer != ss)
memcpy(&iod->peer, ss, sslen);
iod->peerlen = sslen;
#if HAVE_IOCP
/* The connection will be initiated when the event is added to the iod. */
if (engine_is_iocp(ms))
return;
#endif
if (connect(iod->sd, (struct sockaddr *)ss, sslen) == -1) {
int err = socket_errno();