portpicker

Function is_free

Source
pub fn is_free(ip: IpAddr, port: Port) -> bool
Expand description

Check if a port is free on both TCP and UDP