[][src]Function netutils::tcp::free_port

pub fn free_port() -> Option<u16>

Returns a free, ready to use tcp port from operating system

Examples

use netutils::tcp;

fn main() {
    println!("Port {} is available", tcp::free_port().unwrap());
}