initializes and executes NFD-RIB service thread More...
#include <service.hpp>
Classes | |
class | Error |
Public Member Functions | |
Service (const std::string &configFile, ndn::KeyChain &keyChain) | |
create NFD-RIB service More... | |
Service (const ConfigSection &config, ndn::KeyChain &keyChain) | |
create NFD-RIB service More... | |
~Service () | |
Destructor. More... | |
void | initialize () |
Perform initialization of NFD-RIB instance. More... | |
initializes and executes NFD-RIB service thread
Definition at line 45 of file service.hpp.
nfd::rib::Service::Service | ( | const std::string & | configFile, |
ndn::KeyChain & | keyChain | ||
) |
create NFD-RIB service
configFile | absolute or relative path of configuration file |
keyChain | the KeyChain |
Definition at line 43 of file service.cpp.
Referenced by nfd::rib::Service::Error::Error().
nfd::rib::Service::Service | ( | const ConfigSection & | config, |
ndn::KeyChain & | keyChain | ||
) |
create NFD-RIB service
config | parsed configuration section |
keyChain | the KeyChain |
Definition at line 49 of file service.cpp.
nfd::rib::Service::~Service | ( | ) |
Destructor.
Definition at line 55 of file service.cpp.
Referenced by nfd::rib::Service::Error::Error().
void nfd::rib::Service::initialize | ( | ) |
Perform initialization of NFD-RIB instance.
After initialization, NFD-RIB instance can be started by running the global io_service
Definition at line 63 of file service.cpp.
References nfd::getGlobalIoService(), nfd::ConfigFile::ignoreUnknownSection(), nfd::ConfigFile::parse(), nfd::rib::RibManager, and nfd::ConfigFile::throwErrorOnUnknownSection().
Referenced by nfd::rib::Service::Error::Error(), and nfd::NfdRunner::run().