From 757c2d4a530a757476a21e6828139ed894e460cc Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Fri, 29 Apr 2011 15:41:25 +0200 Subject: [PATCH] Better comments --- src/host/boostpinger.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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; } -- 1.7.1