blob: b2edd2df4426c39408c122b1ab32702035b621b2 [file] [log] [blame]
hilata6ee6e072014-04-20 17:10:18 -05001ndn-tlv-peek
2============
3
Junxiao Shi5620fb22015-06-07 20:59:38 -07004Deprecated
5----------
6
7ndn-tlv-peek is deprecated and will be removed in a future release of NFD.
8Please use ``ndnpeek`` program from ndn-tools repository `<https://github.com/named-data/ndn-tools>`__.
9
hilata6ee6e072014-04-20 17:10:18 -050010Usage
11-----
12
13::
14
15 ndn-tlv-peek [-h] [-f] [-r] [-m min] [-M max] [-l lifetime] [-p] [-w timeout] name
16
17Description
18-----------
19
20``ndn-tlv-peek`` is a simple consumer program that sends one Interest and expects one Data
21packet in response. The full Data packet (in TLV format) is written to stdout. The
22program terminates with return code 0 if Data arrives, and with return code 1 when timeout
23occurs.
24
25``name`` is interpreted as the Interest name.
26
27Options
28-------
29
30``-h``
31 Print help and exit
32
33``-f``
34 If specified, set ``MustBeFresh`` selector in the Interest packet.
35
36``-r``
37 Set ``ChildSelector=1`` (the rightmost child) selector.
38
39``-m``
40 Set ``min`` as the ``MinSuffixComponents`` selector.
41
42``-M``
43 Set ``max`` as the ``MaxSuffixComponents`` selector.
44
45``-l``
46 Set ``lifetime`` (in milliseconds) as the ``InterestLifetime``.
47
48``-p``
49 If specified, print the received payload only, not the full packet.
50
51``-w``
52 Timeout after ``timeout`` milliseconds.
53
54
55Examples
56--------
57
58Send Interest for ``ndn:/app1/video`` and print the received payload only
59
60::
61
62 ndn-tlv-peek -p ndn:/app1/video