blob: 04d0717a89dc8b7fa7122552f6f05e7513c7ff61 [file] [log] [blame]
Davide Pesaventoa420e972021-02-25 00:56:25 -05001ndnpingserver
2=============
Eric Newberry7f25a112015-05-31 11:23:25 -07003
Davide Pesavento0d4b1822019-07-27 19:32:05 -04004Synopsis
5--------
Eric Newberry7f25a112015-05-31 11:23:25 -07006
Davide Pesavento0d4b1822019-07-27 19:32:05 -04007**ndnpingserver** [-h] [-f *freshness*] [-p *count*] [-s *size*] [-t] [-q] [-V] *prefix*
Eric Newberry7f25a112015-05-31 11:23:25 -07008
9Description
10-----------
11
Davide Pesavento0d4b1822019-07-27 19:32:05 -040012:program:`ndnpingserver` listens for the specified Interest prefix and sends Data packets when
13an Interest under that prefix is received. Once :program:`ndnpingserver` either reaches the
14specified total number of Interests to be satisfied or receives an interrupt signal, it prints
15the number of Data packets sent.
Eric Newberry7f25a112015-05-31 11:23:25 -070016
Davide Pesavento0d4b1822019-07-27 19:32:05 -040017*prefix* is interpreted as the Interest prefix to listen for. The FreshnessPeriod of Data packets
18is set with the **-f** option (default 1 second). The content is by default empty, but if a size
19is specified with the **-s** option, it contains the specified number of the letter "a". Finally,
20the Data is signed with a SHA-256 digest.
Eric Newberry7f25a112015-05-31 11:23:25 -070021
22Options
23-------
24
25``-h``
26 Print help and exit.
27
Davide Pesavento0d4b1822019-07-27 19:32:05 -040028``-f``
29 Set freshness period in milliseconds.
30
31``-p``
32 Maximum number of pings to satisfy. A value of 0 means no limit.
33
34``-s``
35 Size of the response payload.
36
37``-t``
38 Print a timestamp before each log message.
39
40``-q``
41 Do not print a log message each time a ping is received.
42
Eric Newberry7f25a112015-05-31 11:23:25 -070043``-V``
44 Print version and exit.
45
Davide Pesaventoa420e972021-02-25 00:56:25 -050046Examples
47--------
Eric Newberry7f25a112015-05-31 11:23:25 -070048
Davide Pesavento0d4b1822019-07-27 19:32:05 -040049Listen on ``/edu/arizona`` and respond to at most 4 pings, printing the timestamp
50on each received ping::
Eric Newberry7f25a112015-05-31 11:23:25 -070051
Davide Pesavento0d4b1822019-07-27 19:32:05 -040052 ndnpingserver -p 4 -t /edu/arizona