Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame^] | 1 | ndnpingserver |
| 2 | ============= |
Eric Newberry | 7f25a11 | 2015-05-31 11:23:25 -0700 | [diff] [blame] | 3 | |
Davide Pesavento | 0d4b182 | 2019-07-27 19:32:05 -0400 | [diff] [blame] | 4 | Synopsis |
| 5 | -------- |
Eric Newberry | 7f25a11 | 2015-05-31 11:23:25 -0700 | [diff] [blame] | 6 | |
Davide Pesavento | 0d4b182 | 2019-07-27 19:32:05 -0400 | [diff] [blame] | 7 | **ndnpingserver** [-h] [-f *freshness*] [-p *count*] [-s *size*] [-t] [-q] [-V] *prefix* |
Eric Newberry | 7f25a11 | 2015-05-31 11:23:25 -0700 | [diff] [blame] | 8 | |
| 9 | Description |
| 10 | ----------- |
| 11 | |
Davide Pesavento | 0d4b182 | 2019-07-27 19:32:05 -0400 | [diff] [blame] | 12 | :program:`ndnpingserver` listens for the specified Interest prefix and sends Data packets when |
| 13 | an Interest under that prefix is received. Once :program:`ndnpingserver` either reaches the |
| 14 | specified total number of Interests to be satisfied or receives an interrupt signal, it prints |
| 15 | the number of Data packets sent. |
Eric Newberry | 7f25a11 | 2015-05-31 11:23:25 -0700 | [diff] [blame] | 16 | |
Davide Pesavento | 0d4b182 | 2019-07-27 19:32:05 -0400 | [diff] [blame] | 17 | *prefix* is interpreted as the Interest prefix to listen for. The FreshnessPeriod of Data packets |
| 18 | is set with the **-f** option (default 1 second). The content is by default empty, but if a size |
| 19 | is specified with the **-s** option, it contains the specified number of the letter "a". Finally, |
| 20 | the Data is signed with a SHA-256 digest. |
Eric Newberry | 7f25a11 | 2015-05-31 11:23:25 -0700 | [diff] [blame] | 21 | |
| 22 | Options |
| 23 | ------- |
| 24 | |
| 25 | ``-h`` |
| 26 | Print help and exit. |
| 27 | |
Davide Pesavento | 0d4b182 | 2019-07-27 19:32:05 -0400 | [diff] [blame] | 28 | ``-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 Newberry | 7f25a11 | 2015-05-31 11:23:25 -0700 | [diff] [blame] | 43 | ``-V`` |
| 44 | Print version and exit. |
| 45 | |
Davide Pesavento | a420e97 | 2021-02-25 00:56:25 -0500 | [diff] [blame^] | 46 | Examples |
| 47 | -------- |
Eric Newberry | 7f25a11 | 2015-05-31 11:23:25 -0700 | [diff] [blame] | 48 | |
Davide Pesavento | 0d4b182 | 2019-07-27 19:32:05 -0400 | [diff] [blame] | 49 | Listen on ``/edu/arizona`` and respond to at most 4 pings, printing the timestamp |
| 50 | on each received ping:: |
Eric Newberry | 7f25a11 | 2015-05-31 11:23:25 -0700 | [diff] [blame] | 51 | |
Davide Pesavento | 0d4b182 | 2019-07-27 19:32:05 -0400 | [diff] [blame] | 52 | ndnpingserver -p 4 -t /edu/arizona |