pub fn request_open_port() -> Option<u16>
Expand description

Request to the os the next open port.

Example

use port_scanner::request_open_port;
println!("Port {}", request_open_port().unwrap_or(0));