proc-net-1.0.0.2: Parse /proc/net/ tcp,tcp6,udp,udp6

Safe HaskellSafe
LanguageHaskell2010

Network.Sockets.ProcNet

Contents

Synopsis

Types

data SockInfo addr Source #

Instances

Show addr => Show (SockInfo addr) Source # 

Methods

showsPrec :: Int -> SockInfo addr -> ShowS #

show :: SockInfo addr -> String #

showList :: [SockInfo addr] -> ShowS #

newtype Addr4 Source #

like Network.Socket.HostAddress

Constructors

Addr4 Word32 

newtype Addr6 Source #

like Network.Socket.HostAddress6

Constructors

Addr6 (Word32, Word32, Word32, Word32) 

class Addr addr Source #

Minimal complete definition

parseAddr

Reading

readProcNet :: Addr addr => FilePath -> IO [SockInfo addr] Source #

Read a table from procnet (tcp or udp, 4 or 6)13

readProcNetTcp4 :: IO [SockInfo Addr4] Source #

Get the table from procnet/tcp

readProcNetTcp6 :: IO [SockInfo Addr6] Source #

Get the table from procnet/tcp6

readProcNetUdp4 :: IO [SockInfo Addr4] Source #

Get the table from procnet/udp

readProcNetUdp6 :: IO [SockInfo Addr6] Source #

Get the table from procnet/udp6