Dentosal / portpicker-rs

Pick a free unused port

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Portpicker-rs - Pick a free unused port

Crates.io Documentation

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

Usage:

portpicker::pick_unused_port().expect("No ports free")

License

The Unlicense: free to use, modify, and distribute.

About

Pick a free unused port

License:The Unlicense


Languages

Language:Rust 100.0%