openport

Crates.ioopenport
lib.rsopenport
version0.1.1
sourcesrc
created_at2024-09-24 14:49:56.930234
updated_at2024-09-24 15:50:04.187308
descriptionFind a free unused port
homepage
repositoryhttps://github.com/MoosicBox/MoosicBoxServer
max_upload_size
id1385306
size23,260
Braden Steffaniak (BSteffaniak)

documentation

README

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.

Commit count: 2243

cargo fmt