Maintainer | ongy |
---|---|
Stability | testing |
Portability | Linux |
Safe Haskell | None |
Language | Haskell2010 |
This module allows to add multiple network interfaces. If multiple network interfaces are active the first one in the list will be used.
- data NetworkHandles
- getReadWriteMulti :: NetworkHandles -> IO (Maybe (Int, Int))
- getNetworkHandles :: [String] -> IO NetworkHandles
Documentation
data NetworkHandles Source #
The handle exported by this module
getReadWriteMulti :: NetworkHandles -> IO (Maybe (Int, Int)) Source #
Get the read/write rate of the first interface in the list that is connected
The value will be a tuple (Read, Write) in bit/s or Nothing
if no network is
connected.
:: [String] | A list of interface names, the display order will be the same as the order in this list |
-> IO NetworkHandles |
Create a NetworkHandles
for the list of networks