| Maintainer | ongy |
|---|---|
| Stability | experimental |
| Portability | Linux |
| Safe Haskell | None |
| Language | Haskell2010 |
Monky.Wifi
Description
- getCurrentWifi :: SSIDSocket -> Interface -> IO (Maybe String)
- getCurrentWifiStats :: SSIDSocket -> Interface -> IO (Maybe WifiStats)
- getInterface :: SSIDSocket -> String -> IO (Maybe Interface)
- gotReadable :: SSIDSocket -> Interface -> IO WifiConn
- getSSIDSocket :: IO SSIDSocket
- type Interface = Word32
- type SSIDSocket = NL80211Socket
- getWifiFd :: SSIDSocket -> Fd
- data WifiStats = WifiStats {}
- data WifiConn
Documentation
getCurrentWifi :: SSIDSocket -> Interface -> IO (Maybe String) Source #
Get only the name of the currently connected wifi
getCurrentWifiStats :: SSIDSocket -> Interface -> IO (Maybe WifiStats) Source #
Get the stats of a currently connected wifi network
getInterface :: SSIDSocket -> String -> IO (Maybe Interface) Source #
Get the interface id by name
gotReadable :: SSIDSocket -> Interface -> IO WifiConn Source #
This should be called when the fd returned by getWifiFd got readable
getSSIDSocket :: IO SSIDSocket Source #
Get a netlink socket bound to nl80211 mlme Group
type SSIDSocket = NL80211Socket Source #
The socket type for this module
getWifiFd :: SSIDSocket -> Fd Source #
get the raw fd for eventing
Wifi network connection information
Enum for connection change
Constructors
| WifiNone | Nothing changed, connection unrelated message |
| WifiDisconnect | The current network was disconnectd |
| WifiConnect WifiStats | A new connection was established |