update docu messages for io_service
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 12 Jan 2015 14:35:48 +0000 (15:35 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 12 Jan 2015 14:35:48 +0000 (15:35 +0100)
src/host/pingerfactory.cpp
src/host/pingrotate.cpp
src/host/pingscheduler.cpp
src/icmp/icmppinger.cpp

index 57d0b44..2ad9fbc 100644 (file)
@@ -62,7 +62,7 @@ PingerFactory::~PingerFactory()
  * @brief Create a Pinger object suitable to the given protocol.
  *
  * @param protocol One of the available ping protocols.
- * @param io_serv The @c io_service object.
+ * @param io_serv The one @c io_service object that controls async processing
  * @param network_interface The network interface name from where the ping
  * packet will be sent.
  * @return a Pinger object to able to ping using the given protocol.
index 19e2a43..641b58f 100644 (file)
@@ -37,7 +37,7 @@ using boost::shared_ptr;
 /**
  * @brief Parameterized constructor.
  *
- * @param io_serv The @c io_service object.
+ * @param io_serv The one @c io_service object that controls async processing
  * @param network_interface The name of the network interface from where to
  * dispatch the pings.
  * @param destination_address The remote address to ping.
index b11cbf1..65b5a3e 100644 (file)
@@ -49,6 +49,7 @@ using I2n::Logger::GlobalLogger;
 /**
  * @brief Parameterized constructor.
  *
+ * @param io_serv The one @c io_serv object that controls async processing
  * @param network_interface The name of the network interface originating the pings.
  * @param destination_address The remote address to ping.
  * @param destination_port The remote port to ping.
@@ -60,7 +61,7 @@ using I2n::Logger::GlobalLogger;
  * @param first_delay Delay in seconds from start_pinging to first ping attempt
  */
 PingScheduler::PingScheduler(
-        const IoServiceItem io_service,
+        const IoServiceItem io_serv,
         const string &network_interface,
         const string &destination_address,
         const uint16_t destination_port,
@@ -75,8 +76,8 @@ PingScheduler::PingScheduler(
         const int first_delay
 
 ) :
-    NextPingTimer( *io_service ),
-    NextAddressTimer( *io_service ),
+    NextPingTimer( *io_serv ),
+    NextAddressTimer( *io_serv ),
     TimeSentLastPing( microsec_clock::universal_time() ),
     PingIntervalInSec( ping_interval_in_sec ),
     AddressResolveIntervalInSec( ping_interval_in_sec ),
@@ -96,7 +97,7 @@ PingScheduler::PingScheduler(
 
     Ping = PingerFactory::createPinger(
             ping_protocol_list,
-            io_service,
+            io_serv,
             network_interface,
             destination_address,
             destination_port,
index fa76a05..a4e05a6 100644 (file)
@@ -44,7 +44,7 @@ static const std::size_t SOCKET_BUFFER_SIZE = 65536;   // 64kB
 /**
  * @brief Parameterized constructor.
  *
- * @param io_serv The @c io_service object to control this object.
+ * @param io_serv The one @c io_service object that controls async processing
  * @param protocol The network layer protocol to use.
  * @param source_network_interface The network interface name from where to
  * send the packets.