Function zebra_test::net::random_unallocated_port

source ·
pub fn random_unallocated_port() -> u16
Expand description

Returns the “magic” port number that tells the operating system to choose a random unallocated port.

The OS chooses a different port each time it opens a connection or listener with this magic port number.

§Usage

See the usage note for random_known_port.