From: Guilherme Maciel Ferreira Date: Tue, 19 Jul 2011 01:22:22 +0000 (-0300) Subject: Added the remaining TCP pinger arguments X-Git-Tag: v1.1^2~55 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=84525f34cfb72a52956c7a2d88f21a3c8c0e8795;p=pingcheck Added the remaining TCP pinger arguments - still not working, but the skeleton is done --- 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(