Better comments
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Fri, 29 Apr 2011 13:41:25 +0000 (15:41 +0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Mon, 2 May 2011 09:35:17 +0000 (11:35 +0200)
src/host/boostpinger.cpp

index c96918f..b962ce0 100644 (file)
@@ -78,9 +78,10 @@ bool BoostPinger::ping( const string &destination_ip )
 
     set_destination_endpoint( destination_ip );
 
+    // if start_pinger() does not block, the PingerStatus will be equal to
+    // PingStatus_NotSent, thus ping_success will be false
     start_pinger();
 
-    // TODO if we don't block, the PingerStatus will be PingStatus_NotSent for the first time until receive a response
     bool ping_success = (PingerStatus == PingStatus_SuccessReply);
     return ping_success;
 }