hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame^] | 1 | ndn-tlv-poke |
| 2 | ============ |
| 3 | |
| 4 | Usage |
| 5 | ----- |
| 6 | |
| 7 | :: |
| 8 | |
| 9 | ndn-tlv-poke [-h] [-f] [-D] [-i identity] [-F] [-x freshness] [-w timeout] name |
| 10 | |
| 11 | Description |
| 12 | ----------- |
| 13 | |
| 14 | ``ndn-tlv-poke`` is a simple producer program that reads payload from stdin and publishes it |
| 15 | as a single NDN Data packet. The Data packet is published either as a response to the |
| 16 | incoming Interest for the given ``name``, or forcefully pushed to the local NDN |
| 17 | forwarder's cache if ``-f`` flag is specified. |
| 18 | |
| 19 | The program terminates with return code 0 if Data is sent and with return code 1 when |
| 20 | timeout occurs. |
| 21 | |
| 22 | Options |
| 23 | ------- |
| 24 | |
| 25 | ``-h`` |
| 26 | Print usage and exit. |
| 27 | |
| 28 | ``-f`` |
| 29 | If specified, send Data without waiting for Interest. |
| 30 | |
| 31 | ``-D`` |
| 32 | If specified, use ``DigestSha256`` signature instead of default ``SignatureSha256WithRsa``. |
| 33 | |
| 34 | ``-i`` |
| 35 | Use ``identity`` to sign the created Data packet. |
| 36 | |
| 37 | ``-F`` |
| 38 | Set ``FinalBlockId`` to the last component of specified name. |
| 39 | |
| 40 | ``-x`` |
| 41 | Set ``FreshnessPeriod`` in milliseconds. |
| 42 | |
| 43 | ``-w`` |
| 44 | Wait at most ``timeout`` milliseconds for the incoming Interest. If no Interest arrives |
| 45 | within the ``timeout``, the Data packet will not be published. |
| 46 | |
| 47 | |
| 48 | Examples |
| 49 | -------- |
| 50 | |
| 51 | Create Data packet with content ``hello`` with the name ``ndn:/app/video`` and wait at |
| 52 | most 3 seconds for the incoming Interest for it:: |
| 53 | |
| 54 | echo "Hello" | build/bin/ndn-tlv-poke -w 3000 ndn:/app/video |