Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 374 Bytes

README.md

File metadata and controls

15 lines (15 loc) · 374 Bytes

tool

Examples

use port_open::get_port_isopen;
fn main() {
  let result = get_port_isopen(&[127, 0, 0, 1], &[80, 5037, 22]);
  for port in result {
      println!("{:?}", res);
  }
}

print-out: PortOpen { ip: 127.0.0.1, port: 80, is_open: false } PortOpen { ip: 127.0.0.1, port: 5037, is_open: true } PortOpen { ip: 127.0.0.1, port: 22, is_open: false }