# Functions
BuildUserEntries scans under /proc/%pid/fd/.
FilterByLocalListeningPorts filters ConnectionStat slice by the local listening ports.
IsPrivateIP returns whether 'ip' is in private network space.
LocalIPAddrs gets the string slice of localhost IPaddrs.
LocalListeningPorts returns the local listening ports.
NetlinkConnections returns connection stats.
NetlinkFilterByLocalListeningPorts filters ConnectionStat slice by the local listening ports.
NetlinkLocalListeningPorts returns the local listening ports.
ProcfsConnections returns connection stats.
ResolveAddr lookup first hostname from IP Address.
# Structs
Addr is <addr>:<port>.
ConnectionStat represents statistics for a connection.
NetlinkError represents netlink error.
UserEnt represents a detail of network socket.
# Type aliases
UserEntByLport is a map that key is listening port, value is UserEnt structure.
UserEnts represents a hashmap of UserEnt as key is the inode.