hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame^] | 1 | ndn-tlv-peek |
| 2 | ============ |
| 3 | |
| 4 | Usage |
| 5 | ----- |
| 6 | |
| 7 | :: |
| 8 | |
| 9 | ndn-tlv-peek [-h] [-f] [-r] [-m min] [-M max] [-l lifetime] [-p] [-w timeout] name |
| 10 | |
| 11 | Description |
| 12 | ----------- |
| 13 | |
| 14 | ``ndn-tlv-peek`` is a simple consumer program that sends one Interest and expects one Data |
| 15 | packet in response. The full Data packet (in TLV format) is written to stdout. The |
| 16 | program terminates with return code 0 if Data arrives, and with return code 1 when timeout |
| 17 | occurs. |
| 18 | |
| 19 | ``name`` is interpreted as the Interest name. |
| 20 | |
| 21 | Options |
| 22 | ------- |
| 23 | |
| 24 | ``-h`` |
| 25 | Print help and exit |
| 26 | |
| 27 | ``-f`` |
| 28 | If specified, set ``MustBeFresh`` selector in the Interest packet. |
| 29 | |
| 30 | ``-r`` |
| 31 | Set ``ChildSelector=1`` (the rightmost child) selector. |
| 32 | |
| 33 | ``-m`` |
| 34 | Set ``min`` as the ``MinSuffixComponents`` selector. |
| 35 | |
| 36 | ``-M`` |
| 37 | Set ``max`` as the ``MaxSuffixComponents`` selector. |
| 38 | |
| 39 | ``-l`` |
| 40 | Set ``lifetime`` (in milliseconds) as the ``InterestLifetime``. |
| 41 | |
| 42 | ``-p`` |
| 43 | If specified, print the received payload only, not the full packet. |
| 44 | |
| 45 | ``-w`` |
| 46 | Timeout after ``timeout`` milliseconds. |
| 47 | |
| 48 | |
| 49 | Examples |
| 50 | -------- |
| 51 | |
| 52 | Send Interest for ``ndn:/app1/video`` and print the received payload only |
| 53 | |
| 54 | :: |
| 55 | |
| 56 | ndn-tlv-peek -p ndn:/app1/video |