Project

General

Profile

Actions

Task #1349

closed

ndn-tlv-peek: simple consumer

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

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

100%

Estimated time:
2.00 h

Description

Develop a simple consumer program that sends one Interest and expects one response.

ndn-tlv-peek [-f] [-r] [-m min] [-M max] [-l lifetime] [-p] [-w timeout] ndn:/name
  Get one Data item matching the name prefix and write it to stdout
  -f set MustBeFresh
  -r set ChildSelector=rightmost
  -m set MinSuffixComponents
  -M set MaxSuffixComponents
  -l set InterestLifetime in milliseconds
  -p payload only, not full packet
  -w timeout in milliseconds

The full Data packet (in TLV format) is written to stdout (it's intended to be processed by tlvdump).

If -p is specified, write just the payload (value of Content element).

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

Timeout is specified with -w. If -w is missing, use InterestLifetime as timeout.

Actions

Also available in: Atom PDF