nfdc

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NfdMgmtCmd

type NfdMgmtCmd struct {
	Module  string
	Cmd     string
	Args    *mgmt.ControlArgs
	Retries int
}

type NfdMgmtThread

type NfdMgmtThread struct {
	// contains filtered or unexported fields
}

func NewNfdMgmtThread

func NewNfdMgmtThread(engine ndn.Engine) *NfdMgmtThread

(AI GENERATED DESCRIPTION): Creates a new NfdMgmtThread with the given ndn.Engine, initializing its command channel (buffered with 4096) and stop channel for thread control.

func (*NfdMgmtThread) CreateFace added in v1.5.0

func (m *NfdMgmtThread) CreateFace(args *mgmt.ControlArgs) (uint64, bool, error)

CreatePermFace creates a new permanent face to the given neighbor. This is a blocking call. returns: face ID of the created link, whether the face was created, error

func (*NfdMgmtThread) Exec

func (m *NfdMgmtThread) Exec(mgmt_cmd NfdMgmtCmd)

(AI GENERATED DESCRIPTION): Queues a management command to the NfdMgmtThread by sending it through its command channel.

func (*NfdMgmtThread) Start

func (m *NfdMgmtThread) Start()

(AI GENERATED DESCRIPTION): Continuously processes forwarder management commands from the channel, retrying each command up to the specified number of times (or indefinitely if the retry count is negative) and exits when a stop signal is received.

func (*NfdMgmtThread) Stop

func (m *NfdMgmtThread) Stop()

(AI GENERATED DESCRIPTION): Signals the NfdMgmtThread to terminate by sending a true value on its stop channel.

func (*NfdMgmtThread) String added in v1.4.3

func (m *NfdMgmtThread) String() string

(AI GENERATED DESCRIPTION): Returns the constant string “dv‑nfdc”, serving as the textual identifier for this NfdMgmtThread instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL