TcpPinger::TcpPinger(
io_service &io_serv,
const string &source_network_interface_name,
- const int echo_reply_timeout_in_sec
+ const int rst_reply_timeout_in_sec
) :
IoService( io_serv ),
DestinationEndpoint(),
TimeSent( microsec_clock::universal_time() ),
ReplyBuffer(),
ReceivedReply( false ),
- EchoReplyTimeoutInSec( echo_reply_timeout_in_sec ),
+ RstReplyTimeoutInSec( rst_reply_timeout_in_sec ),
PingerStatus( PingStatus_NotSent ),
PingDoneCallback()
{
// Wait up to N seconds for a reply.
ReceivedReply = false;
(void) TcpSegmentReceiveTimer.expires_at(
- TimeSent + seconds( EchoReplyTimeoutInSec )
+ TimeSent + seconds( RstReplyTimeoutInSec )
);
TcpSegmentReceiveTimer.async_wait(
boost::bind( &TcpPinger::handle_timeout, this )
{
ReceivedReply = false;
TcpSegmentReceiveTimer.expires_at(
- TimeSent + seconds( EchoReplyTimeoutInSec )
+ TimeSent + seconds( RstReplyTimeoutInSec )
);
TcpSegmentReceiveTimer.async_wait(
boost::bind( &TcpPinger::start_send, this )
TcpPinger(
boost::asio::io_service &io_service,
const std::string &source_network_interface_name,
- const int echo_reply_timeout_in_sec
+ const int rst_reply_timeout_in_sec
);
virtual ~TcpPinger();
/// number of replies to the ICMP echo request
bool ReceivedReply;
/// the amount of time to wait for the reply
- int EchoReplyTimeoutInSec;
+ int RstReplyTimeoutInSec;
/// the status of the pinger
TcpPinger::PingStatus PingerStatus;
/// Callback to notify when the ping is done (got reply/timeout)