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
Constructs a new NfdMgmtThread with the provided ndn.Engine, initializing a buffered channel for management commands (capacity 4096) and an unbuffered stop channel for termination signaling.
func (*NfdMgmtThread) CreateFace ¶
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)
Sends the provided management command to the internal channel, allowing the NFD management thread to process it asynchronously.
func (*NfdMgmtThread) Start ¶
func (m *NfdMgmtThread) Start()
Starts a loop to process NFD management commands from a channel, retrying failed commands up to a specified limit (or indefinitely if retries are negative), and exits gracefully when a stop signal is received.
func (*NfdMgmtThread) Stop ¶
func (m *NfdMgmtThread) Stop()
Signals the NFD management thread to terminate by sending a termination notification through its stop channel.
func (*NfdMgmtThread) String ¶
func (m *NfdMgmtThread) String() string
Returns the string representation "dv-nfdc" for the NFD management thread when printed.