blob: da948d17a4d46796541bec0fbb0cc098f476f5b5 [file] [log] [blame]
Eric Newberry7f25a112015-05-31 11:23:25 -07001ndnping
2=======
3
4Usage
5-----
6
7::
8
9 ndnpingserver [-h] [-V] [-x freshness] [-p satisfy] [-t] [-s size] prefix
10
11Description
12-----------
13
14``ndnpingserver`` listens for the specified Interest prefix and sends Data packets when an Interest
15under that prefix is received. Once ``ndnpingserver`` either reaches the specified total number of
16Interests to be satisfied or receives an interrupt signal, it prints the number of Data packets
17sent.
18
19``prefix`` is interpreted as the Interest prefix to listen for. The FreshnessPeriod of Data packets
20is set with the -x option (default 1000ms). The content is by default empty, but if a size is
21specified with the '-s' option, it contains the specified number of the letter "a". Finally, the
22Data is signed with an SHA256 digest.
23
24Options
25-------
26
27``-h``
28 Print help and exit.
29
30``-V``
31 Print version and exit.
32
33``-x``
34 Set freshness period in milliseconds (minimum 1000ms).
35
36``-p``
37 Set maximum number of pings to satisfy.
38
39``-t``
40 Prints a timestamp with received Data and timeouts.
41
42``-s``
43 Specify the size of the response payload.
44
45Examples
46--------
47
48Listen on ``ndn:/edu/arizona`` and response to at most 4 pings, printing timestamp on each received
49ping
50
51::
52
53 ndnpingserver -p 4 -t ndn:/edu/arizona