Skip to main content

with_ports

Function with_ports 

Source
pub fn with_ports(
    processes: Vec<Process>,
) -> Result<Vec<(Process, Vec<PortInfo>)>>
Expand description

Each process with the ports it listens on, from one reading of the port table. A reading runs programs on Windows (two netstats, and a tasklist for each socket), so reading it once per process made proc for on a few processes run past a minute there.