|int||select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)|
|Wait for activity on a group of file descriptors. |
Definitions for the select() function.
This file contains the definitions needed for using the select() function, as directed by the POSIX 2008 standard (aka The Open Group Base Specifications Issue 7). Currently the functionality defined herein only really works for sockets, and that is likely how it will stay for some time.
|struct timeval *||timeout|
Wait for activity on a group of file descriptors.
This function will check the specfied group of file descriptors for activity and wait for activity (up to the timeout specified) if there is not any pending events already.
|nfds||The maximum fd specified in any of the sets, plus 1.|
|readfds||File descriptors to check for the ability to read without blocking.|
|writefds||File descriptors to check for the ability to write without blocking.|
|errorfds||File descriptors to check for error/exceptional conditions.|
|timeout||Maximum amount of time to block. Passing a 0 timeout will make the funciton not block, Passing NULL here will make the function block indefinitely.|