NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::NfdRunner Class Reference

Executes NFD with RIB manager. More...

Inheritance diagram for nfd::NfdRunner:
Collaboration diagram for nfd::NfdRunner:

Public Member Functions

 NfdRunner (const std::string &configFile)
 
void initialize ()
 
int run ()
 

Static Public Member Functions

static void systemdNotify (const char *state)
 

Detailed Description

Executes NFD with RIB manager.

NFD (main forwarding procedure) and RIB manager execute in two different threads. Each thread has its own instances of global io_service and global scheduler.

When either of the daemons fails, execution of non-failed daemon will be terminated as well. In other words, when NFD fails, RIB manager will be terminated; when RIB manager fails, NFD will be terminated.

Definition at line 78 of file main.cpp.

Constructor & Destructor Documentation

◆ NfdRunner()

nfd::NfdRunner::NfdRunner ( const std::string &  configFile)
inlineexplicit

Definition at line 82 of file main.cpp.

Member Function Documentation

◆ initialize()

void nfd::NfdRunner::initialize ( )
inline

Definition at line 97 of file main.cpp.

References nfd::Nfd::initialize().

Referenced by main().

◆ run()

int nfd::NfdRunner::run ( )
inline

◆ systemdNotify()

static void nfd::NfdRunner::systemdNotify ( const char *  state)
inlinestatic

The documentation for this class was generated from the following file: