openport 0.1.0

Find a free unused port
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# openport - find a free unused port

[![Crates.io](https://img.shields.io/crates/v/openport)](https://crates.io/crates/openport)
[![Documentation](https://docs.rs/openport/badge.svg)](https://docs.rs/openport)

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

Usage:

```rust
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.