Skip to main content

parse_lsof_output

Function parse_lsof_output 

Source
pub fn parse_lsof_output(
    text: &str,
    ports: &[(String, u16, u32)],
    first_seen: &mut HashMap<(u16, String), Instant>,
    now: Instant,
) -> LsofMessage
Expand description

Parse lsof -iTCP -P -n output into a LsofMessage. Public for tests.