simplified dns (no self-made recursion); merge PingScheduler and PingRotate; make...
[pingcheck] / src / tcp / tcppinger.h
index 8a6329f..19effee 100644 (file)
@@ -47,7 +47,7 @@ public:
     virtual ~TcpPinger();
 
     virtual void ping(
-            const std::string &destination_ip,
+            const boost::asio::ip::address &destination_ip,
             const uint16_t destination_port,
             boost::function<void(bool)> ping_done_callback
     );
@@ -76,7 +76,7 @@ private:
     uint16_t get_destination_port() const;
 
     void set_destination_endpoint(
-            const std::string &destination_ip,
+            const boost::asio::ip::address &destination_ip,
             const uint16_t destination_port
     );