[status, rfdset, wfdset, efdset] =
select (nfds, rfdset, wfdset, efdset, timeout)
¶Wait for socket activity on selected sockets.
The fdsets are vectors of fds to check, for example [1 2 3]. Empty vectors equate to null.
nfds tests file descriptions in the range of 0 - nfds-1.
Timeout is can be either an real value for number of seconds, a struct with a tm_sec and tm_usec fields, or empty set for null.
status returns as 0 if timeout, or number of waiting sockets if ok.
See the select
man pages for further details.
Package: sockets