monky-2.1.0.0: A system state collecting library and application

PortabilityLinux
Stabilitytesting
Maintainerongy
Safe HaskellNone

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

getNetworkHandleSource

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)