Copyright | 2017 Fernando Rincon Martin |
---|---|
License | Apache-2.0 |
Maintainer | frm.rincon@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Ping wrapper.
It calls ping utility and parse the result in a haskell data type.
Currently only support win32 platform
- data PingOptions = PingOptions {
- hostNameOrAddress :: String
- count :: Int
- data PingResult :: *
- = PingSucceed {
- hostAddress :: IPv4
- hostNameResolved :: Maybe Text
- bytesOfData :: Int
- lineResults :: [LineResult]
- | PingError PingError
- = PingSucceed {
- performPing :: PingOptions -> IO (Either String PingResult)
Documentation
data PingOptions Source #
data PingResult :: * #
performPing :: PingOptions -> IO (Either String PingResult) Source #
Execute synchronously the ping and return the parsed result