From: Guilherme Maciel Ferreira Date: Tue, 8 Mar 2011 17:52:14 +0000 (+0100) Subject: Attribute renamed according to the code conventions X-Git-Tag: v1.0~154 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=b1a826326000b3f95e77ce208bae93db09e96487;p=pingcheck Attribute renamed according to the code conventions --- diff --git a/src/ping/boostpinger.cpp b/src/ping/boostpinger.cpp index c7fe9a2..29ab2d2 100644 --- a/src/ping/boostpinger.cpp +++ b/src/ping/boostpinger.cpp @@ -22,7 +22,7 @@ using namespace boost::posix_time; BoostPinger::BoostPinger( boost::asio::io_service &io_service ) : - io_service( io_service ), + IoService( io_service ), Resolver( io_service ), DestinationEndpoint(), Socket( io_service, icmp::v4() ), @@ -41,6 +41,9 @@ BoostPinger::~BoostPinger() { } +/* + * TODO document that this method blocks (is synchronous) + */ void BoostPinger::ping( const string &destination, const uint times_to_ping @@ -62,12 +65,12 @@ void BoostPinger::start_pinger() start_send(); start_receive(); - io_service.run(); + IoService.run(); } void BoostPinger::stop_pinger() { - io_service.stop(); + IoService.stop(); } void BoostPinger::start_send() diff --git a/src/ping/boostpinger.h b/src/ping/boostpinger.h index a19ee4a..44e3794 100644 --- a/src/ping/boostpinger.h +++ b/src/ping/boostpinger.h @@ -42,7 +42,7 @@ private: uint16_t get_identifier() const; private: - boost::asio::io_service &io_service; + boost::asio::io_service &IoService; boost::asio::ip::icmp::resolver Resolver; boost::asio::ip::icmp::endpoint DestinationEndpoint; boost::asio::ip::icmp::socket Socket;