system-linux-proc-0.1.1: A library for accessing the /proc filesystem in Linux

Safe HaskellSafe
LanguageHaskell2010

System.Linux.Proc.Tcp

Synopsis

Documentation

data TcpSocket Source #

TCP socket used by a process according to the `/proc/<pid>/net/tcp` file of the process. Only non-debug fields are parsed and described the socket data structure.

Instances
Show TcpSocket Source # 
Instance details

Defined in System.Linux.Proc.Tcp

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

Read and parse the `/proc/<pid>/net/tcp` file. Read and parse errors are caught and returned.