monky-2.2.1.0: A system state collecting library and application

Maintainerongy
Stabilitytesting
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

Monky.Network.Static

Description

This module should be used for static network configurations

Synopsis

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

getNetworkHandle Source #

Arguments

:: String

Name of the interface to monitor

-> IO NetworkHandle 

closeNetworkHandle :: NetworkHandle -> IO () Source #

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