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

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

@@ -63,6 +63,13 @@
#include "nsock_internal.h"
#if HAVE_IOCP
extern struct io_engine engine_iocp;
#define ENGINE_IOCP &engine_iocp,
#else
#define ENGINE_IOCP
#endif /* HAVE_IOCP */
#if HAVE_EPOLL
extern struct io_engine engine_epoll;
#define ENGINE_EPOLL &engine_epoll,
@@ -94,6 +101,7 @@ static struct io_engine *available_engines[] = {
ENGINE_EPOLL
ENGINE_KQUEUE
ENGINE_POLL
ENGINE_IOCP
ENGINE_SELECT
NULL
};
@@ -145,6 +153,9 @@ int nsock_set_default_engine(char *engine) {
const char *nsock_list_engines(void) {
return
#if HAVE_IOCP
"iocp "
#endif
#if HAVE_EPOLL
"epoll "
#endif