pub fn scan_port(port: u16) -> bool
Scan a port and return true if it’s open.
use port_scanner::scan_port; println!("Port 8000 open? {}", scan_port(8000));