Eric Newberry | 7f25a11 | 2015-05-31 11:23:25 -0700 | [diff] [blame^] | 1 | ndnping |
| 2 | ======= |
| 3 | |
| 4 | Usage |
| 5 | ----- |
| 6 | |
| 7 | :: |
| 8 | |
| 9 | ndnpingserver [-h] [-V] [-x freshness] [-p satisfy] [-t] [-s size] prefix |
| 10 | |
| 11 | Description |
| 12 | ----------- |
| 13 | |
| 14 | ``ndnpingserver`` listens for the specified Interest prefix and sends Data packets when an Interest |
| 15 | under that prefix is received. Once ``ndnpingserver`` either reaches the specified total number of |
| 16 | Interests to be satisfied or receives an interrupt signal, it prints the number of Data packets |
| 17 | sent. |
| 18 | |
| 19 | ``prefix`` is interpreted as the Interest prefix to listen for. The FreshnessPeriod of Data packets |
| 20 | is set with the -x option (default 1000ms). The content is by default empty, but if a size is |
| 21 | specified with the '-s' option, it contains the specified number of the letter "a". Finally, the |
| 22 | Data is signed with an SHA256 digest. |
| 23 | |
| 24 | Options |
| 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 | |
| 45 | Examples |
| 46 | -------- |
| 47 | |
| 48 | Listen on ``ndn:/edu/arizona`` and response to at most 4 pings, printing timestamp on each received |
| 49 | ping |
| 50 | |
| 51 | :: |
| 52 | |
| 53 | ndnpingserver -p 4 -t ndn:/edu/arizona |