Added the remaining TCP pinger arguments
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 19 Jul 2011 01:22:22 +0000 (22:22 -0300)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Tue, 19 Jul 2011 01:22:22 +0000 (22:22 -0300)
- still not working, but the skeleton is done

src/tcp/tcppinger.cpp
src/tcp/tcppinger.h

index c2d1566..3da92bb 100644 (file)
@@ -24,13 +24,18 @@ on this file might be covered by the GNU General Public License.
 #include "tcp/tcpheader.h"
 
 using namespace std;
+using boost::asio::io_service;
 using boost::function;
 
 //-----------------------------------------------------------------------------
 // TcpPinger
 //-----------------------------------------------------------------------------
 
-TcpPinger::TcpPinger()
+TcpPinger::TcpPinger(
+        io_service &io_serv,
+        const string &source_network_interface,
+        const int echo_reply_timeout_in_sec
+)
 {
 }
 
index 9c20695..bb64169 100644 (file)
@@ -22,6 +22,7 @@ on this file might be covered by the GNU General Public License.
 
 #include <string>
 
+#include <boost/asio.hpp>
 #include <boost/function.hpp>
 
 #include "host/pinger.h"
@@ -33,7 +34,11 @@ on this file might be covered by the GNU General Public License.
 class TcpPinger : public Pinger
 {
 public:
-    TcpPinger();
+    TcpPinger(
+            boost::asio::io_service &io_service,
+            const std::string &source_network_interface,
+            const int echo_reply_timeout_in_sec
+    );
     virtual ~TcpPinger();
 
     void ping(