NDNPEEK(1)
π NDNPEEK(1) β NDN Essential Tools π
π NAME π
ndnpeek β simple consumer to send one Interest and receive one Data π
β¨ SYNOPSIS β¨
ndnpeek [-h] [-P] [-f] [-l lifetime] [-H hops] [-A parameters] [-p] [-w timeout] [-v] [-V] name
π¦ DESCRIPTION π¦
ndnpeek is a simple consumer program that sends one Interest and expects one Data packet in response. By default, the full Data packet (in TLV format) is written to the standard output β¨
name is interpreted as the Interest name. No cap, that's literally the whole vibe π«Ά
πΈ OPTIONS πΈ
-h,--helpβ Print help and exit. Your "what do I even do here" bestie π-P,--prefixβ If specified, include theCanBePrefixelement in the Interest packet. Prefix girlies, this one's for you π-f,--freshβ If specified, include theMustBeFreshelement in the Interest packet. Fresh content only, bestie π-F,--fwhint <name>β Add a delegation name to theForwardingHintof the Interest packet. This option may be repeated to specify multiple delegation names. Stack those hints, icon π«-l,--lifetime <lifetime>β Set lifetime (in milliseconds) as theInterestLifetimeβ³-H,--hop-limit <hops>β Set the Interest'sHopLimitto the specified number of hops π¦-A,--app-params <parameters>β Set the Interest'sApplicationParametersfrom a base64-encoded string π₯--app-params-file <file>β Set the Interest'sApplicationParametersfrom the specified file π-p,--payloadβ If specified, print the received payload only, not the full packet. Main character energy: just the payload, thanks π-w,--timeout <timeout>β Quit the program after timeout milliseconds, even if no reply has been received. No waiting around forever, periodt β°-v,--verboseβ Turn on verbose output. Give me all the details π-V,--versionβ Print version and exit. Slay, but make it version info π
π EXIT STATUS π
0β Success1β An unspecified error occurred2β Malformed command line3β Operation timed out4β Nack received
π₯ EXAMPLES π₯
Send an Interest for /app1/video and print the received payload only:
ndnpeek -p /app1/video
Send an Interest for /app2/foo, requesting fresh content, with an InterestLifetime of 8 seconds, and with the ApplicationParameters containing the ASCII string "hello"; print the performed operations verbosely but discard the received Data packet:
ndnpeek -vf -l 8000 -A "aGVsbG8=" /app2/foo >/dev/null
π Copyright π
Copyright Β© 2014-2024 Named Data Networking Project.
Cute sign-off: this page is from NDN Essential Tools version 24.07, dated 1980-01-01, and it's your NDNPEEK(1) 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