mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 05:09:00 +00:00
Finally added a function to list the available nsock engines.
This commit is contained in:
@@ -204,6 +204,9 @@ nsock_ssl_ctx nsp_ssl_init_max_speed(nsock_pool ms_pool);
|
|||||||
* Pass NULL to reset to default (use most efficient engine available). */
|
* Pass NULL to reset to default (use most efficient engine available). */
|
||||||
void nsock_set_default_engine(char *engine);
|
void nsock_set_default_engine(char *engine);
|
||||||
|
|
||||||
|
/* Get a comma-separated list of available engines. */
|
||||||
|
const char *nsock_list_engines(void);
|
||||||
|
|
||||||
/* And here is how you create an nsock_pool. This allocates, initializes, and
|
/* And here is how you create an nsock_pool. This allocates, initializes, and
|
||||||
* returns an nsock_pool event aggregator. In the case of error, NULL will be
|
* returns an nsock_pool event aggregator. In the case of error, NULL will be
|
||||||
* returned. If you do not wish to immediately associate any userdata, pass in
|
* returned. If you do not wish to immediately associate any userdata, pass in
|
||||||
|
|||||||
@@ -128,3 +128,11 @@ void nsock_set_default_engine(char *engine) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *nsock_list_engines(void) {
|
||||||
|
return
|
||||||
|
#if HAVE_EPOLL
|
||||||
|
"epoll,"
|
||||||
|
#endif
|
||||||
|
"select";
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user