NDNPUTCHUNKS(1)
πΈ NAME πΈ
NDNPUTCHUNKS(1), straight outta the NDN Essential Tools manual π
ndnputchunks β producer program with content segmentation β¨
β¨ SYNOPSIS β¨
ndnputchunks [option]... name
π DESCRIPTION π
okay so bestie, ndnputchunks is a producer program. It reads a file from the standard input and makes it available as NDN Data segments π«Ά
The version and segment number components are appended to the specified name as needed, according to the NDN naming conventions (https://named-data.net/publications/techreports/ndn-tr-22-3-ndn-memo-naming-conventions/) [1]. no cap, that's the whole vibe π«
π OPTIONS π
-h,--helpβ prints help and exits, iconic behavior honestly π-f,--freshness_MILLISECS_ β sets theFreshnessPeriodof the published Data packets, in milliseconds. The default is10000(10 seconds) β±οΈ-s,--size_BYTES_ β sets the maximum chunk size, in bytes. The default is8000bytes π-N,--naming-convention_CONVENTION_ β selects the convention used to encode NDN name components. The available choices are:marker(shorthand:mor1) β for the old marker-based encoding πtyped(shorthand:tor2) β for the new encoding based on typed name components β¨
If this option is not specified, the ndn-cxx library's default is used π«Ά
-S,--signing-info_STRING_ β specifies the parameters used to sign the Data packets. If omitted, the default key of the default identity is used. The general syntax is<scheme>:<name>. The most common supported combinations are as follows:- Sign with the default certificate of the default key of an identity:
id:/<my-identity>π - Sign with the default certificate of a specific key:
key:/<my-identity>/ksk-1π - Sign with a specific certificate:
cert:/<my-identity>/KEY/ksk-1/ID-CERT/v=1π - Sign with a SHA-256 digest:
id:/localhost/identity/digest-sha256. Note that this is only a hash function, not a real signature, but it can significantly speed up packet signing operations β‘
- Sign with the default certificate of the default key of an identity:
-p,--print-data-versionβ prints the version of the published Data to the standard output π-q,--quietβ turns off all non-error output π€«-v,--verboseβ produces verbose output π£οΈ-V,--versionβ prints program version and exits π
π¦ EXAMPLES π¦
The following command will publish the text of the GPL-3 license under the /localhost/demo/gpl3 prefix:
ndnputchunks /localhost/demo/gpl3 < /usr/share/common-licenses/GPL-3
To see the published version, you can run the program with the -p option:
ndnputchunks -p /localhost/demo/gpl3 < /usr/share/common-licenses/GPL-3
This command will print the published version to the standard output β¨
To publish Data with a specific version, you must append a version component to the end of the prefix. The version component must follow the aforementioned NDN naming conventions. For example, the following command will publish version 1615519151142 of /localhost/demo/gpl3 using the "typed" naming convention:
ndnputchunks -Nt /localhost/demo/gpl3/v=1615519151142 < /usr/share/common-licenses/GPL-3
π SEE ALSO π
π Copyright π
Copyright Β© 2014-2024 Named Data Networking Project.
This page is literally from NDN Essential Tools, version 24.07, dated 1980-01-01, and the manual page is NDNPUTCHUNKS(1). bye bestie πβ¨
π¦ where this page comes from
- nixos 26.05: ndn-tools 24.07
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms