initializes and executes NFD-RIB service thread More...
#include <service.hpp>
Public Member Functions | |
Service (const ConfigSection &configSection, ndn::Face &face, ndn::KeyChain &keyChain) | |
~Service () | |
Destructor. More... | |
RibManager & | getRibManager () |
Static Public Member Functions | |
static Service & | get () |
Get a reference to the only instance of this class. More... | |
initializes and executes NFD-RIB service thread
Only one instance of this class can be created at any time. After initialization, NFD-RIB instance can be started by running the global io_service.
Definition at line 52 of file service.hpp.
nfd::rib::Service::Service | ( | const ConfigSection & | configSection, |
ndn::Face & | face, | ||
ndn::KeyChain & | keyChain | ||
) |
Definition at line 58 of file service.cpp.
References nfd::ConfigFile::addSectionHandler(), nfd::RibManager::enableLocalFields(), ndn::Face::getIoService(), nfd::ConfigFile::ignoreUnknownSection(), ndn::security::v2::KeyChain, and nfd::RibManager::registerWithNfd().
Referenced by getRibManager().
nfd::rib::Service::~Service | ( | ) |
Destructor.
Definition at line 87 of file service.cpp.
|
static |
Get a reference to the only instance of this class.
std::logic_error | No instance has been constructed |
std::logic_error | This function is invoked on a thread other than the RIB thread |
Definition at line 92 of file service.cpp.
References nfd::RibManager::applyLocalhostConfig(), nfd::RibManager::applyPaConfig(), ndn::tlv::nfd::ControlParameters, nfd::RibManager::enableLocalhop(), ns3::ndn::L3Protocol::getRibService(), ndn::security::ValidatorConfig::load(), nfd::RibManager::LOCALHOP_TOP_PREFIX, NDN_THROW, NFD_LOG_DEBUG, nfd::ConfigFile::parseYesNo(), ndn::nfd::ROUTE_ORIGIN_CLIENT, ndn::nfd::CommandOptions::setPrefix(), ndn::nfd::CommandOptions::setTimeout(), and websocketpp::transport::error::timeout.
Referenced by nfd::fw::SelfLearningStrategy::afterReceiveNack().
|
inline |
Definition at line 71 of file service.hpp.
References ndn::security::v2::KeyChain, and Service().
Referenced by nfd::fw::SelfLearningStrategy::afterReceiveNack().