blob: c4c0a47c7a7156691b64f9a45ea35ad84daee8e5 [file] [log] [blame]
Junxiao Shi2219a052015-05-28 02:53:48 -07001ndnpoke
2=======
3
4Usage
5-----
6
7::
8
9 ndnpoke [-h] [-f] [-D] [-i identity] [-F] [-x freshness] [-w timeout] name
10
11Description
12-----------
13
14``ndnpoke`` is a simple producer program that reads payload from stdin and publishes it
15as a single NDN Data packet. The Data packet is published either as a response to the
16incoming Interest for the given ``name``, or forcefully pushed to the local NDN
17forwarder's cache if ``-f`` flag is specified.
18
19The program terminates with return code 0 if Data is sent and with return code 1 when
20timeout occurs.
21
22Options
23-------
24
25``-h``
26 Print usage and exit.
27
28``-f``
29 If specified, send Data without waiting for Interest.
30
31``-D``
32 If specified, use ``DigestSha256`` signature instead of default ``SignatureSha256WithRsa``.
33
34``-i``
35 Use ``identity`` to sign the created Data packet.
36
37``-F``
38 Set ``FinalBlockId`` to the last component of specified name.
39
40``-x``
41 Set ``FreshnessPeriod`` in milliseconds.
42
43``-w``
44 Wait at most ``timeout`` milliseconds for the incoming Interest. If no Interest arrives
45 within the ``timeout``, the Data packet will not be published.
46
47
48Examples
49--------
50
51Create Data packet with content ``hello`` with the name ``ndn:/app/video`` and wait at
52most 3 seconds for the incoming Interest for it::
53
54 echo "Hello" | build/bin/ndnpoke -w 3000 ndn:/app/video