7#ifndef __HDI_CORE_INTERNET_PING__
8#define __HDI_CORE_INTERNET_PING__
39 const std::string& domain_,
64 const std::string& domain_,
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Allows for the creation of simple ICMP ping clients to check the availability of a remote host.
Definition: hdicoreInternetPing.h:24
virtual bool running() const
Gets whether the ping request is currently running.
virtual bool reached() const
Gets whether the remote host was reached when pinged.
InternetPing(const std::string &domain_, const Callback &success_, const Callback &failure_)
Creates a synchronous (blocking) InternetPing object to perform a ping request.
virtual bool asynchronous() const
Gets whether the target object is asynchronous (i.e. executes in a background thread)
virtual void run()
Starts the ping request.
virtual double timing() const
Gets how long it took to reach the remote host.
virtual std::string error() const
Gets an error description if the ping request failed.
virtual std::string address() const
Gets the IP address of the remote host for the domain given when the InternetPing object was construc...
virtual ~InternetPing()
Destructs an InternetPing object.
static InternetPing * Async(const std::string &domain_, const Callback &success_, const Callback &failure_)
Creates an asynchronous (non-blocking) InternetPing object to perform a ICMP ping request.