From 84525f34cfb72a52956c7a2d88f21a3c8c0e8795 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Mon, 18 Jul 2011 22:22:22 -0300 Subject: [PATCH] Added the remaining TCP pinger arguments - still not working, but the skeleton is done --- src/tcp/tcppinger.cpp | 7 ++++++- src/tcp/tcppinger.h | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/tcp/tcppinger.cpp b/src/tcp/tcppinger.cpp index c2d1566..3da92bb 100644 --- a/src/tcp/tcppinger.cpp +++ b/src/tcp/tcppinger.cpp @@ -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 +) { } diff --git a/src/tcp/tcppinger.h b/src/tcp/tcppinger.h index 9c20695..bb64169 100644 --- a/src/tcp/tcppinger.h +++ b/src/tcp/tcppinger.h @@ -22,6 +22,7 @@ on this file might be covered by the GNU General Public License. #include +#include #include #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( -- 1.7.1