Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdCatChunks ¶
Constructs a Cobra command for retrieving NDN data under a specified name prefix and writing the content to stdout.
func CmdPingClient ¶
Constructs a CLI command for sending NDN Interest packets to a specified prefix with configurable interval, timeout, count, and starting sequence number to measure network latency.
func CmdPingServer ¶
Constructs a CLI command to start an NDN ping server under a specified name prefix, with an optional flag to use the client's origin for prefix registration.
func CmdPutChunks ¶
Constructs a CLI command for publishing data under a specified name prefix in Named-Data Networking, reading input from standard input with an optional flag to register the prefix via client origin.
Types ¶
type PingClient ¶
type PingClient struct {
// contains filtered or unexported fields
}
func (*PingClient) String ¶
func (pc *PingClient) String() string
Returns the string representation of the PingClient as "ping", used for identification in logging or debugging contexts.
type PingServer ¶
type PingServer struct {
// contains filtered or unexported fields
}
func (*PingServer) String ¶
func (ps *PingServer) String() string
Returns a string representation of the PingServer as "ping-server".