blob: 0b6683e98cfc2a06e8a5fa5fd6f595cfce99c888 [file] [log] [blame]
Junxiao Shi2219a052015-05-28 02:53:48 -07001ndnpeek
2=======
3
Davide Pesavento65d11552019-06-09 19:15:50 -04004Synopsis
5--------
Junxiao Shi2219a052015-05-28 02:53:48 -07006
Davide Pesavento65d11552019-06-09 19:15:50 -04007**ndnpeek** [-h] [-P] [-f] [-l *lifetime*] [-p] [-w *timeout*] [-v] [-V] *name*
Junxiao Shi2219a052015-05-28 02:53:48 -07008
9Description
10-----------
11
Davide Pesavento65d11552019-06-09 19:15:50 -040012:program:`ndnpeek` is a simple consumer program that sends one Interest and
13expects one Data packet in response. By default, the full Data packet (in TLV
14format) is written to the standard output.
Junxiao Shi2219a052015-05-28 02:53:48 -070015
Davide Pesavento65d11552019-06-09 19:15:50 -040016*name* is interpreted as the Interest name.
Junxiao Shi2219a052015-05-28 02:53:48 -070017
18Options
19-------
20
Teng Liangd4ab87f2016-03-08 18:50:47 -070021``-h, --help``
22 Print help and exit.
Junxiao Shi2219a052015-05-28 02:53:48 -070023
Junxiao Shib54aabd2018-04-16 19:36:24 +000024``-P, --prefix``
25 If specified, include ``CanBePrefix`` element in the Interest packet.
26
Teng Liangd4ab87f2016-03-08 18:50:47 -070027``-f, --fresh``
Junxiao Shib54aabd2018-04-16 19:36:24 +000028 If specified, include ``MustBeFresh`` element in the Interest packet.
Junxiao Shi2219a052015-05-28 02:53:48 -070029
Davide Pesavento65d11552019-06-09 19:15:50 -040030``--link-file <file>``
Junxiao Shib54aabd2018-04-16 19:36:24 +000031 Read Link object from ``file`` and add it as ``ForwardingHint`` to the Interest packet.
Junxiao Shi2219a052015-05-28 02:53:48 -070032
Davide Pesavento65d11552019-06-09 19:15:50 -040033``-l, --lifetime <lifetime>``
Junxiao Shi2219a052015-05-28 02:53:48 -070034 Set ``lifetime`` (in milliseconds) as the ``InterestLifetime``.
35
Teng Liangd4ab87f2016-03-08 18:50:47 -070036``-p, --payload``
Junxiao Shi2219a052015-05-28 02:53:48 -070037 If specified, print the received payload only, not the full packet.
38
Davide Pesavento65d11552019-06-09 19:15:50 -040039``-w, --timeout <timeout>``
40 Quit the program after ``timeout`` milliseconds, even if no reply has been received.
Junxiao Shi2219a052015-05-28 02:53:48 -070041
Teng Liangd4ab87f2016-03-08 18:50:47 -070042``-v, --verbose``
Davide Pesavento65d11552019-06-09 19:15:50 -040043 Turn on verbose output.
Teng Liangd4ab87f2016-03-08 18:50:47 -070044
45``-V, --version``
46 Print version and exit.
47
Davide Pesavento65d11552019-06-09 19:15:50 -040048Exit Status
49-----------
Teng Liangd4ab87f2016-03-08 18:50:47 -070050
510: Success
52
531: An unspecified error occurred
54
552: Malformed command line
56
Davide Pesavento65d11552019-06-09 19:15:50 -0400573: Operation timed out
Teng Liangd4ab87f2016-03-08 18:50:47 -070058
594: Nack received
Junxiao Shi2219a052015-05-28 02:53:48 -070060
Davide Pesavento65d11552019-06-09 19:15:50 -040061Example
62-------
Junxiao Shi2219a052015-05-28 02:53:48 -070063
Davide Pesavento65d11552019-06-09 19:15:50 -040064Send Interest for ``/app1/video`` and print the received payload only::
Junxiao Shi2219a052015-05-28 02:53:48 -070065
Davide Pesaventoe75861e2019-07-24 21:55:39 -040066 ndnpeek -p /app1/video