blob: 5f704ee9672d32f5e978d81bd3d0ca19390fc7dc [file] [log] [blame]
Junxiao Shi2219a052015-05-28 02:53:48 -07001ndnpoke
2=======
3
Davide Pesaventoe75861e2019-07-24 21:55:39 -04004Synopsis
5--------
Junxiao Shi2219a052015-05-28 02:53:48 -07006
Davide Pesavento6a1396e2019-07-26 15:03:28 -04007**ndnpoke** [-h] [-u] [-F] [-x *freshness*] [-i *identity*\|\ -D] [-w *timeout*] [-v] [-V] *name*
Junxiao Shi2219a052015-05-28 02:53:48 -07008
9Description
10-----------
11
Davide Pesaventoe75861e2019-07-24 21:55:39 -040012:program:`ndnpoke` is a simple producer program that reads a payload from the standard
13input and publishes it as a single Data packet. The Data packet is either sent as a
14response to an incoming Interest matching *name*, or immediately pushed to the local
Davide Pesavento6a1396e2019-07-26 15:03:28 -040015NDN forwarder as "unsolicited Data" if the **-u** flag is specified.
Junxiao Shi2219a052015-05-28 02:53:48 -070016
17Options
18-------
19
Davide Pesaventoe75861e2019-07-24 21:55:39 -040020``-h, --help``
21 Print help and exit.
Junxiao Shi2219a052015-05-28 02:53:48 -070022
Davide Pesavento6a1396e2019-07-26 15:03:28 -040023``-u, --unsolicited``
Davide Pesaventoe75861e2019-07-24 21:55:39 -040024 Send the Data packet without waiting for an incoming Interest.
Junxiao Shi2219a052015-05-28 02:53:48 -070025
Davide Pesaventoe75861e2019-07-24 21:55:39 -040026``-F, --final``
27 Set the ``FinalBlockId`` to the last component of *name*.
Junxiao Shi2219a052015-05-28 02:53:48 -070028
Davide Pesaventoe75861e2019-07-24 21:55:39 -040029``-x, --freshness <freshness>``
30 Set ``freshness`` (in milliseconds) as the ``FreshnessPeriod``.
Junxiao Shi2219a052015-05-28 02:53:48 -070031
Davide Pesaventoe75861e2019-07-24 21:55:39 -040032``-i, --identity <identity>``
33 Use ``identity`` to sign the Data packet.
Junxiao Shi2219a052015-05-28 02:53:48 -070034
Davide Pesaventoe75861e2019-07-24 21:55:39 -040035``-D, --digest``
36 Use ``DigestSha256`` signature type instead of the default ``SignatureSha256WithRsa``.
Junxiao Shi2219a052015-05-28 02:53:48 -070037
Davide Pesaventoe75861e2019-07-24 21:55:39 -040038``-w, --timeout <timeout>``
39 Quit the program after ``timeout`` milliseconds, even if no Interest has been received.
Junxiao Shi2219a052015-05-28 02:53:48 -070040
Davide Pesaventob3ae6342019-07-25 21:07:16 -040041``-v, --verbose``
42 Turn on verbose output.
43
Davide Pesaventoe75861e2019-07-24 21:55:39 -040044``-V, --version``
45 Print version and exit.
Junxiao Shi2219a052015-05-28 02:53:48 -070046
Davide Pesaventoe75861e2019-07-24 21:55:39 -040047Exit Status
48-----------
Junxiao Shi2219a052015-05-28 02:53:48 -070049
Davide Pesaventoe75861e2019-07-24 21:55:39 -0400500: Success
Junxiao Shi2219a052015-05-28 02:53:48 -070051
Davide Pesaventoe75861e2019-07-24 21:55:39 -0400521: An unspecified error occurred
53
542: Malformed command line
55
Davide Pesavento94dff002019-07-24 23:35:05 -0400563: No Interests received before the timeout
57
Davide Pesavento87434be2019-07-25 19:04:23 -0400585: Prefix registration failed
59
Davide Pesaventoe75861e2019-07-24 21:55:39 -040060Example
61-------
62
63Create a Data packet with content ``hello`` and name ``/app/video`` and wait at
64most 3 seconds for a matching Interest to arrive::
65
66 echo "hello" | ndnpoke -w 3000 /app/video