TimeSent + seconds( EchoReplyTimeoutInSec )
);
IcmpPacketReceiveTimer.async_wait(
- boost::bind( &BoostPinger::handle_timeout_echo_reply, this )
+ boost::bind( &BoostPinger::handle_timeout_icmp_packet, this )
);
}
-void BoostPinger::handle_timeout_echo_reply()
-{
- if ( RepliesCount == 0 )
- {
- print_request_timeout();
-
- set_ping_status( PingStatus_FailureTimeout );
- }
-
- schedule_next_echo_request();
-}
-
void BoostPinger::schedule_next_echo_request()
{
// Requests must be sent no less than one second apart.
);
}
+void BoostPinger::handle_timeout_icmp_packet()
+{
+ if ( RepliesCount == 0 )
+ {
+ print_request_timeout();
+
+ set_ping_status( PingStatus_FailureTimeout );
+ }
+
+ schedule_next_echo_request();
+}
+
void BoostPinger::handle_receive_icmp_packet( const size_t &bytes_transferred )
{
// The actual number of bytes received is committed to the buffer so that we
IcmpPacket create_echo_request( const uint16_t sequence_number ) const;
void send_echo_request( const IcmpPacket &icmp_packet );
void schedule_timeout_echo_reply();
- void handle_timeout_echo_reply();
void schedule_next_echo_request();
void start_receive();
+ void handle_timeout_icmp_packet();
void handle_receive_icmp_packet( const std::size_t &bytes_transferred );
void print_request_timeout() const;