system-linux-proc-0.1.1.1: A library for accessing the /proc filesystem in Linux
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Linux.Proc.Tcp

Synopsis

Documentation

data TcpSocket Source #

TCP socket used by a process according to the `procpidnettcp` file of the process. Only non-debug fields are parsed and described the socket data structure.

Instances

Instances details
Show TcpSocket Source # 
Instance details

Defined in System.Linux.Proc.Tcp

readProcTcpSockets :: ProcessId -> IO (Either ProcError [TcpSocket]) Source #

Read and parse the `procpidnettcp` file. Read and parse errors are caught and returned.