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