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.
nfd::rib::Service::~Service | ( | ) |
Destructor.
Definition at line 85 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 90 of file service.cpp.
References ns3::ndn::L3Protocol::getRibService().
|
inline |
Definition at line 71 of file service.hpp.