Waits for the first of several socket connections to become available.
socketSelect(socklist, write = FALSE, timeout = NULL)
- list of open socket connections
- logical. If
TRUEwait for corresponding socket to become available for writing; otherwise wait for it to become available for reading.
- numeric or
NULL. Time in seconds to wait for a socket to become available;
NULLmeans wait indefinitely.
The values in
write are recycled if necessary to make up a logical vector the same length as
socklist. Socket connections can appear more than once in
socklist; this can be useful if you want to determine whether a socket is available for reading or writing.
Logical the same length as
socklist indicating whether the corresponding socket connection is available for output or input, depending on the corresponding value of
Documentation reproduced from R 3.0.1. License: GPL-2.