openport 0.1.0

Find a free unused port
Documentation

openport - find a free unused port

Crates.io Documentation

Finds a free port, that is unused on both TCP and UDP.

Usage:

use openport::pick_unused_port;
let port: u16 = pick_unused_port(15000..16000).expect("No ports free");

License

openport is provided under the MPL v2.0 license. Please refer to the LICENSE file for more details.