Crate port_selector
source · [−]Structs
Functions
Check whether the port is not used on TCP and UDP
Check whether the port is not used on TCP
Check whether the port is not used on UDP
The system randomly assigns available TCP and UDP ports
The system randomly assigns available TCP ports
The system randomly assigns available UDP ports
Gets a matching port based on the Selector
parameter constraint
Check from given_port
and return the first available port
Return if given_port
is available; Otherwise given_port += given_port
until the port is available