Added call functionality to figure out the maximum number of sockets (file descriptors) available on system.

This commit is contained in:
Jan Vidar Krey
2009-08-02 22:26:07 +02:00
parent 077bffd74f
commit 4931dc5dcb
3 changed files with 22 additions and 0 deletions

View File

@@ -87,6 +87,11 @@ extern const char* net_error_string(int code);
*/
extern int net_socket_create(int af, int type, int protocol);
/**
* Returns the maximum number of file/socket descriptors.
*/
extern size_t net_get_max_sockets();
/**
* A wrapper for the close() function call.
*/