Find a TCP port that can be opened
Arguments
- ports
(integer vector, or character string) Zero or more TCP ports in [0, 65535] to scan. If
"random", then a random set of ports is considered. If"auto", then the port given by environment variableR_PARALLEL_PORTis used, which may also specifyrandom.- default
(integer)
NA_integer_or a port to returned if an available port could not be found. If"first", thenports[1]. If"random", then a random port amongportsis used. Iflength(ports) == 0, thenNA_integer_.- randomize
(logical) If TRUE,
portsis randomly shuffled before searched. This shuffle does not forward the RNG seed.
