Actions
Task #1514
closedndngetfile: retrieve tool
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