NDNPOKE(1)

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

okay so bestie, welcome to NDNPOKE(1) from NDN Essential Tools πŸ’– this one is short, iconic, and extremely "publish one packet and go."


πŸ’– NAME πŸ’–

ndnpoke β€” simple producer to publish one Data πŸŽ€


✨ SYNOPSIS ✨

ndnpoke [-h] [-f freshness] [-F] [-S info] [-u|-w timeout] [-v] [-V]
name

πŸŽ€ DESCRIPTION πŸŽ€

okay so ndnpoke is a simple producer program. it reads a payload from the standard input and publishes it as a single Data packet. that Data packet is either sent as a response to an incoming Interest matching name, or immediately pushed to the local NDN forwarder as "unsolicited Data" if the -u flag is specified. that's the whole main-character job, no cap πŸ¦‹


πŸ’… OPTIONS πŸ’…

  • -h, --help β€” prints help and exits, bye bestie πŸ‘‹
  • -f, --freshness <freshness> β€” sets freshness in milliseconds as the FreshnessPeriod ⏳
  • -F, --final β€” sets the FinalBlockId to the last component of name 🏁
  • -S, --signing-info <info> β€” specifies the parameters used to sign the Data packet. if it's 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. this is important, bestie, don't treat it like a real signature 😭
  • -u, --unsolicited β€” sends the Data packet without waiting for an incoming Interest πŸš€
  • -w, --timeout <timeout> β€” quits the program after timeout milliseconds, even if no Interest has been received ⏰
  • -v, --verbose β€” turns on verbose output πŸ—£οΈ
  • -V, --version β€” prints version and exits 🏷️

πŸ¦‹ EXIT STATUS πŸ¦‹

  • 0 β€” Success ✨
  • 1 β€” An unspecified error occurred 😭
  • 2 β€” Malformed command line πŸ’€
  • 3 β€” No Interests received before the timeout πŸ™ˆ
  • 5 β€” Prefix registration failed πŸ”₯

🌈 EXAMPLES 🌈

create a Data packet with content hello and name /app/video and wait at most 3 seconds for a matching Interest to arrive:

echo "hello" | ndnpoke -w 3000 /app/video

Copyright Β© 2014-2024 Named Data Networking Project.


kisses, this page comes from NDN Essential Tools, version 24.07, dated 1980-01-01 πŸ«ΆπŸ’–

πŸ“¦ where this page comes from