Portability | Linux |
---|---|
Stability | testing |
Maintainer | ongy |
Safe Haskell | None |
This module should be used for static network configurations
- getReadWrite :: NetworkHandle -> IO (Maybe (Int, Int))
- data NetworkHandle
- getNetworkHandle :: String -> IO NetworkHandle
- closeNetworkHandle :: NetworkHandle -> IO ()
Documentation
getReadWrite :: NetworkHandle -> IO (Maybe (Int, Int))Source
Get the (read, write) rate of the network interface. This is averaged over the time between calls
data NetworkHandle Source
Internal handle represanting exactly one interface
:: String | Name of the interface to monitor |
-> IO NetworkHandle |
Get a NetworkHandle
closeNetworkHandle :: NetworkHandle -> IO ()Source
Close a network handle after it is no longer needed (the device disappeared)