Project

General

Profile

Actions

Task #1350

closed

ndn-tlv-poke: simple producer

Added by Junxiao Shi about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Tools
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

Develop a simple producer program that sends one Data.

ndn-tlv-poke [-f] [-D] [-i identity] [-F] [-x freshness] [-w timeout] ndn:/name
  Reads payload from stdin and sends it to local NDN forwarder as a single Data packet
  -f force, send Data without waiting for Interest
  -D use DigestSha256 signing method instead of SignatureSha256WithRsa
  -i specify identity used for signing
  -F set FinalBlockId to the last component of Name
  -x set FreshnessPeriod in milliseconds
  -w set timeout in milliseconds (default 10 seconds)

The payload (value of Content element) is read from stdin, put into a Data packet, and signed with the specified method.

If -D is present, signing method is DigestSha256.

If -D is absent, signing method is SignatureSha256WithRsa.

When signing method is SignatureSha256WithRsa, use the identity given in -i option.

If -i is absent, use the default identity.

When signing method is not SignatureSha256WithRsa, -i option is ignored.

If -f is absent, the program registers the exact name as a prefix, waits for one Interest, and sends Data.

If -f is present, the program sends the Data without waiting.

The program terminates with return code 0 if Data is sent, or terminates with return code 1 on timeout.

Timeout controls when program should terminate if -w is absent and no Interest arrives, and is unrelated to FreshnessPeriod.

Actions

Also available in: Atom PDF