ping-wrapper-0.1.0.0: Haskell Ping wrapper

Copyright2017 Fernando Rincon Martin
LicenseApache-2.0
Maintainerfrm.rincon@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Ping

Description

Ping wrapper.

It calls ping utility and parse the result in a haskell data type.

Currently only support win32 platform

Synopsis

Documentation

data PingOptions Source #

Constructors

PingOptions 

Instances

Show PingOptions Source # 
Generic PingOptions Source # 

Associated Types

type Rep PingOptions :: * -> * #

type Rep PingOptions Source # 
type Rep PingOptions = D1 (MetaData "PingOptions" "Ping.CommonTypes" "ping-wrapper-0.1.0.0-FvzAWmT7o5kCmklmOpKM5d" False) (C1 (MetaCons "PingOptions" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "hostNameOrAddress") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)) (S1 (MetaSel (Just Symbol "count") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))))

performPing :: PingOptions -> IO (Either String PingResult) Source #

Execute synchronously the ping and return the parsed result