NDNPEEK(1)

πŸ“¦
version 24.07 Β· 2 versions
, in nixos 26.05

πŸ’… 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 the CanBePrefix element in the Interest packet. Prefix girlies, this one's for you πŸ’…
  • -f, --fresh β€” If specified, include the MustBeFresh element in the Interest packet. Fresh content only, bestie πŸ“
  • -F, --fwhint <name> β€” Add a delegation name to the ForwardingHint of 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 the InterestLifetime ⏳
  • -H, --hop-limit <hops> β€” Set the Interest's HopLimit to the specified number of hops πŸ¦‹
  • -A, --app-params <parameters> β€” Set the Interest's ApplicationParameters from a base64-encoded string πŸ”₯
  • --app-params-file <file> β€” Set the Interest's ApplicationParameters from 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 β€” Success
  • 1 β€” An unspecified error occurred
  • 2 β€” Malformed command line
  • 3 β€” Operation timed out
  • 4 β€” 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 Β© 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