Attribute renamed according to the code conventions
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Tue, 8 Mar 2011 17:52:14 +0000 (18:52 +0100)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Tue, 8 Mar 2011 17:52:14 +0000 (18:52 +0100)
src/ping/boostpinger.cpp
src/ping/boostpinger.h

index c7fe9a2..29ab2d2 100644 (file)
@@ -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()
index a19ee4a..44e3794 100644 (file)
@@ -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;