diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2018-02-26 14:08:59 +0100 |
---|---|---|
committer | Mauro Sardara <msardara+fdio@cisco.com> | 2018-02-26 15:29:27 +0100 |
commit | fac06d1485609520b6eabae2a5504eba8b91e5ef (patch) | |
tree | b6660ea2d9a6546fbb219dabcb6ac96ca0abcbce /apps/consumers | |
parent | 1d4ce83ccc5143230fb1b8e8460073a51a0c9121 (diff) |
Minor fix for package build, delete pending interest after timeout expiration.
Change-Id: I9649bcee4a6daa8dcf2183fcfd903d8806798f52
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'apps/consumers')
-rw-r--r-- | apps/consumers/icnet_ping_client.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/apps/consumers/icnet_ping_client.cc b/apps/consumers/icnet_ping_client.cc index fdc0b405..ac090033 100644 --- a/apps/consumers/icnet_ping_client.cc +++ b/apps/consumers/icnet_ping_client.cc @@ -37,12 +37,12 @@ class Configuration { std::string name_; uint8_t ttl_; - Configuration() { - interestLifetime_ = 500; //ms - pingInterval_ = 1000000; //us - maxPing_ = std::numeric_limits<uint64_t>::max(); //number of interests - name_ = "ccnx:/pingserver"; //string - ttl_ = 64; + Configuration() + : interestLifetime_(500), //ms + pingInterval_(1000000), //us + maxPing_(std::numeric_limits<uint64_t>::max()), //number of interests + name_("ccnx:/pingserver"), //string + ttl_(64) { } }; @@ -174,6 +174,7 @@ class Client { << "/"; std::cout << std::fixed << std::setprecision(3) << rtt_mdev / 1000 << " ms"; + std::cout << std::endl; } portal_.stopEventsLoop(); @@ -204,7 +205,7 @@ class Client { void help(char * program_name) { std::cout << "usage: " << program_name << " [options]" << " icn-name" << std::endl; std::cout << "PING options" << std::endl; - std::cout << "-i <val> ping interval in microseconds (default 1000 ms)" << std::endl; + std::cout << "-i <val> ping interval in microseconds (default 10^6 us)" << std::endl; std::cout << "-m <val> maximum number of pings to send (default unlimited)" << std::endl; std::cout << "-t <val> set packet ttl (default 64)" << std::endl; //std::cout << "-j <val1> <val2> jump <val2> sequence numbers every <val1> interests (default disabled)" << std::endl; |