AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Syntax:     int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
Header:     NetLib -     sys/select.h
     Sockets -     socklib.h
     UnixLib -     sys/select.h

Returns:     number of ready descriptors, or EOF if error

This call polls a specified groups of sockets to see which are ready for reading, which are ready for writing and which had exceptional conditions pending. Exceptions, with TCP, imply OOB data arrival.

The number of file descriptors is the number of bits in the descriptor sets which should be considered as having meaning, so if it is 9 only the first 9 bits (descriptors 0 to 8) will be considered. This call will return as soon as one or more of the sockets being tested is ready or when a timeout occurs.

C definition     SWI definition

[sh-index] Back to list of manuals