mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 20:59:02 +00:00
Merged nsock-engines from nmap-exp. This rewrite of the nsock library adds
support for system-specific scalable IO notification facilities without breaking portability. This initial version comes with an epoll(7)-based engine for Linux and a select(2)-based fallback engine for all other operating systems. This required an important refactoring of the library but the external API was preserved. The rewrite also tries to bring the coding standards of nmap to nsock. See http://labs.unix-junkies.org/nsock_engines.html for the details.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
/***************************************************************************
|
||||
* netutils.h -- This contains some useful little network/socket related *
|
||||
* utility functions. *
|
||||
@@ -70,12 +69,11 @@
|
||||
#include "nbase_winunix.h"
|
||||
#endif
|
||||
|
||||
/* maximize the number of file descriptors (including sockets) allowed
|
||||
for this process and return that maximum value (note -- you better
|
||||
not actually open this many -- stdin, stdout, other files opened by
|
||||
libraries you use, etc. all count toward this limit. Leave a
|
||||
little slack */
|
||||
int maximize_fdlimit();
|
||||
/* Maximize the number of file descriptors (including sockets) allowed for this
|
||||
* process and return that maximum value (note -- you better not actually open
|
||||
* this many -- stdin, stdout, other files opened by libraries you use, etc. all
|
||||
* count toward this limit. Leave a little slack */
|
||||
int maximize_fdlimit(void);
|
||||
|
||||
#endif /* NETUTILS_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user