initializes and executes NFD-RIB service thread More...
#include <rib/service.hpp>
Inheritance diagram for nfd::rib::Service:
Collaboration diagram for nfd::rib::Service:Public Member Functions | |
| Service (const std::string &configFile, ndn::KeyChain &keyChain) | |
| create NFD-RIB service More... | |
| Service (const ConfigSection &configSection, ndn::KeyChain &keyChain) | |
| create NFD-RIB service More... | |
| ~Service () | |
| Destructor. More... | |
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 51 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 |
| std::logic_error | Instance of rib::Service has been already constructed |
| std::logic_error | Instance of rib::Service is not constructed on RIB thread |
Definition at line 87 of file service.cpp.
| nfd::rib::Service::Service | ( | const ConfigSection & | configSection, |
| ndn::KeyChain & | keyChain | ||
| ) |
create NFD-RIB service
| configSection | parsed configuration section |
| keyChain | the KeyChain |
| std::logic_error | Instance of rib::Service has been already constructed |
| std::logic_error | Instance of rib::Service is not constructed on RIB thread |
Definition at line 95 of file service.cpp.
| nfd::rib::Service::~Service | ( | ) |
Destructor.
Definition at line 130 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 136 of file service.cpp.