Skip to content

Dentosal/portpicker-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.