From: Guilherme Maciel Ferreira Date: Fri, 29 Apr 2011 13:41:25 +0000 (+0200) Subject: Better comments X-Git-Tag: v1.0~53 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=757c2d4a530a757476a21e6828139ed894e460cc;p=pingcheck Better comments --- diff --git a/src/host/boostpinger.cpp b/src/host/boostpinger.cpp index c96918f..b962ce0 100644 --- a/src/host/boostpinger.cpp +++ b/src/host/boostpinger.cpp @@ -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; }