monky-2.0.0.0: A system state collecting library and application

Maintainerongy
Stabilitytesting
PortabilityLinux
Safe HaskellSafe
LanguageHaskell2010

Monky.Network.Static

Description

This module should be used for static network configurations

Synopsis

Documentation

getReadWrite :: NetworkHandle -> IO (Maybe (Int, Int)) #

Get the (read, write) rate of the network interface. This is averaged over the time between calls

data NetworkHandle #

Internal handle represanting exactly one interface

getNetworkHandle #

Arguments

:: String

Name of the interface to monitor

-> IO NetworkHandle 

closeNetworkHandle :: NetworkHandle -> IO () #

Close a network handle after it is no longer needed (the device disappeared)