Junxiao Shi | 6877add | 2015-06-06 07:52:20 -0700 | [diff] [blame] | 1 | # ndnpeek and ndnpoke |
| 2 | |
Davide Pesavento | e75861e | 2019-07-24 21:55:39 -0400 | [diff] [blame] | 3 | **ndnpeek** and **ndnpoke** are a pair of programs to respectively request and serve a single Data packet. |
Junxiao Shi | 6877add | 2015-06-06 07:52:20 -0700 | [diff] [blame] | 4 | |
| 5 | * **ndnpeek** is a consumer program that sends one Interest and expects one Data. |
| 6 | * **ndnpoke** is a producer program that serves one Data in response to an Interest. |
| 7 | |
| 8 | Usage example: |
| 9 | |
Davide Pesavento | e75861e | 2019-07-24 21:55:39 -0400 | [diff] [blame] | 10 | 1. start NFD |
Davide Pesavento | db9613e | 2023-01-20 20:52:21 -0500 | [diff] [blame] | 11 | 2. run `echo 'HELLO WORLD' | ndnpoke /localhost/demo/hello` |
| 12 | 3. in another terminal, run `ndnpeek -p /localhost/demo/hello` |
Junxiao Shi | 6877add | 2015-06-06 07:52:20 -0700 | [diff] [blame] | 13 | |
Davide Pesavento | db9613e | 2023-01-20 20:52:21 -0500 | [diff] [blame] | 14 | For more information on these programs, consult their respective manpages. |