1 unstable release

Uses old Rust 2015

0.1.0 Jul 13, 2015

#296 in #unix

MIT license

3KB

porthole

Build Status

A tiny rust crate for resolving the next available network port

docs

Find them here

usage

use porthole;
fn main() {
  let port = porthole::open().unwrap();
  println!("next open port {:?}", port);
}

Doug Tangren (softprops) 2015


lib.rs:

Porthole resolves open network ports so you don't have to.

examples

println!("next available port is {}", porthole::open().unwrap())

No runtime deps