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.
Click to show internal directories.
Click to hide internal directories.