canPortBeUsed: Check whether a TCP port can be opened or not

Description Usage Arguments Value

View source: R/ports.R

Description

Check whether a TCP port can be opened or not

Usage

1

Arguments

port

(integer) A TCP port in [0, 65535].

Value

canPortBeUsed(port) returns a logical indicating whether the port can be opened or not, or cannot be queried. If the port can be opened, then TRUE is returned, if cannot be opened then FALSE is returned, which may happen if the port is used by another process. If port querying is not supported, as in R (< 4.0.0), then NA is returned.


MINATILO/parallelly documentation built on Dec. 17, 2021, 2:11 a.m.