mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Finally added a function to list the available nsock engines.
This commit is contained in:
parent
615de92974
commit
3d2eeaa94d
2 changed files with 11 additions and 0 deletions
|
|
@ -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). */
|
||||
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
|
||||
* 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
|
||||
|
|
|
|||
|
|
@ -128,3 +128,11 @@ void nsock_set_default_engine(char *engine) {
|
|||
}
|
||||
}
|
||||
|
||||
const char *nsock_list_engines(void) {
|
||||
return
|
||||
#if HAVE_EPOLL
|
||||
"epoll,"
|
||||
#endif
|
||||
"select";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue