NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::rib::Service Class Reference

initializes and executes NFD-RIB service thread More...

#include <service.hpp>

Inheritance diagram for nfd::rib::Service:
Collaboration diagram for nfd::rib::Service:

Public Member Functions

 Service (const ConfigSection &configSection, ndn::Face &face, ndn::KeyChain &keyChain)
 
 ~Service ()
 Destructor. More...
 
RibManagergetRibManager ()
 

Static Public Member Functions

static Serviceget ()
 Get a reference to the only instance of this class. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Service()

nfd::rib::Service::Service ( const ConfigSection configSection,
ndn::Face face,
ndn::KeyChain keyChain 
)

Definition at line 58 of file service.cpp.

◆ ~Service()

nfd::rib::Service::~Service ( )

Destructor.

Definition at line 85 of file service.cpp.

Member Function Documentation

◆ get()

Service & nfd::rib::Service::get ( )
static

Get a reference to the only instance of this class.

Exceptions
std::logic_errorNo instance has been constructed
std::logic_errorThis function is invoked on a thread other than the RIB thread

Definition at line 90 of file service.cpp.

References ns3::ndn::L3Protocol::getRibService().

◆ getRibManager()

RibManager& nfd::rib::Service::getRibManager ( )
inline

Definition at line 71 of file service.hpp.


The documentation for this class was generated from the following files: