* @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.
/**
* @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.
/**
* @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.
* @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,
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 ),
Ping = PingerFactory::createPinger(
ping_protocol_list,
- io_service,
+ io_serv,
network_interface,
destination_address,
destination_port,
/**
* @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.