blob: 73acb82dc52fe61f310e72874b49bd1bf4f5b0fc [file] [log] [blame]
hilata6ee6e072014-04-20 17:10:18 -05001ndn-tlv-poke
2============
3
4Usage
5-----
6
7::
8
9 ndn-tlv-poke [-h] [-f] [-D] [-i identity] [-F] [-x freshness] [-w timeout] name
10
11Description
12-----------
13
14``ndn-tlv-poke`` 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/ndn-tlv-poke -w 3000 ndn:/app/video