lib.processes #
fn get_linux_listening_tcp #
fn get_linux_listening_tcp() ![]string
get_linux_listening_tcp() Parsing of /proc/net/tcp. Skips header, filters by state (0A for TCP LISTEN
fn get_linux_listening_udp #
fn get_linux_listening_udp() ![]string
get_linux_listening_udp(): Parsing of /proc/net/udp. Skips header, filters by state bound check for UDP via remote addr).
fn processes #
fn processes() ?[]string
processes(): Aggregates TCP and UDP listeners, then iterates to replace "inode=XXXX" with the process name if found. Returns an array of strings like "tcp 0.0.0.0:22 sshd" (or leaves inode if not found).