NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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 ()
 
void terminate (const boost::system::error_code &error, int signalNo)
 
void reload (const boost::system::error_code &error, int signalNo)
 

Static Public Member Functions

static void printUsage (std::ostream &os, const std::string &programName)
 
static void printModules (std::ostream &os)
 

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 63 of file main.cpp.

Constructor & Destructor Documentation

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

Definition at line 67 of file main.cpp.

References reload(), and terminate().

Member Function Documentation

static void nfd::NfdRunner::printUsage ( std::ostream &  os,
const std::string &  programName 
)
inlinestatic

Definition at line 82 of file main.cpp.

Referenced by main().

static void nfd::NfdRunner::printModules ( std::ostream &  os)
inlinestatic

Definition at line 99 of file main.cpp.

Referenced by main().

void nfd::NfdRunner::initialize ( )
inline

Definition at line 109 of file main.cpp.

References nfd::Nfd::initialize().

Referenced by main().

void nfd::NfdRunner::terminate ( const boost::system::error_code &  error,
int  signalNo 
)
inline

Definition at line 194 of file main.cpp.

References nfd::getGlobalIoService(), and NFD_LOG_INFO.

Referenced by NfdRunner().

void nfd::NfdRunner::reload ( const boost::system::error_code &  error,
int  signalNo 
)
inline

Definition at line 204 of file main.cpp.

References ndn::security::v2::KeyChain, NFD_LOG_INFO, and nfd::Nfd::reloadConfigFile().

Referenced by NfdRunner().


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