Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreInternetPing.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_INTERNET_PING__
8 #define __HDI_CORE_INTERNET_PING__
9 
10 #include <string>
11 
12 namespace hdi
13 {
14  namespace core
15  {
16  class Callback;
17 
24  {
25  public:
39  const std::string& domain_,
40  const Callback& success_,
41  const Callback& failure_
42  );
43 
62  static InternetPing* Async(
63  const std::string& domain_,
64  const Callback& success_,
65  const Callback& failure_
66  );
67 
73  virtual ~InternetPing();
74 
82  virtual bool asynchronous() const;
83 
89  virtual void run();
90 
98  virtual bool running() const;
99 
110  virtual bool reached() const;
111 
123  virtual double timing() const;
124 
137  virtual std::string address() const;
138 
149  virtual std::string error() const;
150 
151 
152  private:
156  void* __impl;
157 
163  InternetPing();
164 
170  InternetPing(const InternetPing&);
171 
177  InternetPing& operator=(const InternetPing&);
178  };
179  }
180 }
181 
182 #endif
183 // __HDI_CORE_INTERNET_PING__
virtual std::string error() const
Gets an error description if the ping request failed.
virtual double timing() const
Gets how long it took to reach the remote host.
virtual ~InternetPing()
Destructs an InternetPing object.
virtual bool reached() const
Gets whether the remote host was reached when pinged.
virtual std::string address() const
Gets the IP address of the remote host for the domain given when the InternetPing object was construc...
virtual bool running() const
Gets whether the ping request is currently running.
virtual void run()
Starts the ping request.
Base class for templated __Callback class.
Definition: hdicoreCallback.h:67
Allows for the creation of simple ICMP ping clients to check the availability of a remote host...
Definition: hdicoreInternetPing.h:23
Definition: hdicoreaiArray.h:12
virtual bool asynchronous() const
Gets whether the target object is asynchronous (i.e. executes in a background thread) ...
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...