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