blob: caa77533a002aa872cf72347be6399cc750f28c7 [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 Pesaventoe75861e2019-07-24 21:55:39 -04007**ndnpoke** [-h] [-f] [-F] [-x *freshness*] [-i *identity*\|\ -D] [-w *timeout*] [-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
15NDN forwarder as "unsolicited Data" if the **-f** 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 Pesaventoe75861e2019-07-24 21:55:39 -040023``-f, --force``
24 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 Pesaventoe75861e2019-07-24 21:55:39 -040041``-V, --version``
42 Print version and exit.
Junxiao Shi2219a052015-05-28 02:53:48 -070043
Davide Pesaventoe75861e2019-07-24 21:55:39 -040044Exit Status
45-----------
Junxiao Shi2219a052015-05-28 02:53:48 -070046
Davide Pesaventoe75861e2019-07-24 21:55:39 -0400470: Success
Junxiao Shi2219a052015-05-28 02:53:48 -070048
Davide Pesaventoe75861e2019-07-24 21:55:39 -0400491: An unspecified error occurred
50
512: Malformed command line
52
53Example
54-------
55
56Create a Data packet with content ``hello`` and name ``/app/video`` and wait at
57most 3 seconds for a matching Interest to arrive::
58
59 echo "hello" | ndnpoke -w 3000 /app/video