Executes NFD with RIB manager. More...
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) |
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.
|
inlineexplicit |
Definition at line 70 of file main.cpp.
References reload(), and terminate().
|
inline |
|
inline |
Definition at line 91 of file main.cpp.
References nfd::getExtendedErrorMessage(), nfd::getGlobalIoService(), nfd::rib::Service::initialize(), NFD_LOG_FATAL, and nfd::PrivilegeHelper::Error::what().
Referenced by main().
|
inline |
Definition at line 168 of file main.cpp.
References nfd::getGlobalIoService(), and NFD_LOG_INFO.
Referenced by NfdRunner().
|
inline |
Definition at line 178 of file main.cpp.
References NFD_LOG_INFO, and nfd::Nfd::reloadConfigFile().
Referenced by NfdRunner().