Project

General

Profile

Actions

Task #1514

closed

ndngetfile: retrieve tool

Added by Junxiao Shi over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
-
Start date:
Due date:
04/30/2014
% Done:

100%

Estimated time:

Description

ndngetfile [-v] [-u] [-l lifetime] [-w timeout] [-o filename] ndn-name
Read a file from repo.

-v: be verbose
-u: unversioned: do not try to find latest version; ndn-name contains version component
ndn-name: NDN Name prefix for Data to be read
-l: InterestLifetime in milliseconds
-w: timeout in milliseconds for whole process (default unlimited)
-o: write to local file name instead of stdout

Example:

  • ndngetfile ndn:/example/files/hello.txt -o./hello.txt
    Read ndn:/example/files/hello.txt//, and output to ./hello.txt.
  • ndngetfile -u ndn:/example/files/world.txt
    Read ndn:/example/files/world.txt/, and output to stdout.

Without -u, first Interest should have MustBeFresh=yes ChildSelector=rightmost in order to find latest version; there's no need to use Exclude to find the "absolute" latest version.
All other Interests do not need selectors.

This tool MAY pipeline the requests.

This tool need not support retrieving unversioned and unsegmented Data from repo, because ndn-tlv-peek can do this job.

Actions

Also available in: Atom PDF