cmd

package
v0.0.0-...-d1ba03b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdDv = &cobra.Command{
	Use:     "ndn-dv CONFIG-FILE",
	Short:   "NDN Distance Vector Routing Daemon",
	GroupID: "run",
	Version: utils.NDNdVersion,
	Args:    cobra.ExactArgs(1),
	Run:     run,
}

Functions

This section is empty.

Types

type DvExecutor

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

func NewDvExecutor

func NewDvExecutor(config *config.Config) (*DvExecutor, error)

Constructs a DvExecutor instance by validating configuration, initializing an NDN engine with a default face, and creating a distance-vector router.

func (*DvExecutor) Router

func (dve *DvExecutor) Router() *dv.Router

Returns the router instance associated with this DvExecutor.

func (*DvExecutor) Start

func (dve *DvExecutor) Start()

Starts the DV engine and router, initializing the engine first and deferring its cleanup, then running the router indefinitely until an error occurs or the program exits.

func (*DvExecutor) Stop

func (dve *DvExecutor) Stop()

Stops the router associated with the DvExecutor by invoking its Stop method.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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