Description Usage Arguments Details Value Examples
Waits for the first of several socket connections to become available.
1 | socketSelect(socklist, write = FALSE, timeout = NULL)
|
socklist |
list of open socket connections |
write |
logical. If |
timeout |
numeric or |
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 write
.
1 2 3 4 5 | ## Not run:
## test whether socket connection s is available for writing or reading
socketSelect(list(s, s), c(TRUE, FALSE), timeout = 0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.