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:

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...
 

Detailed Description

initializes and executes NFD-RIB service thread

Definition at line 45 of file service.hpp.

Constructor & Destructor Documentation

◆ Service() [1/2]

nfd::rib::Service::Service ( const std::string &  configFile,
ndn::KeyChain keyChain 
)

create NFD-RIB service

Parameters
configFileabsolute or relative path of configuration file
keyChainthe KeyChain

Definition at line 43 of file service.cpp.

◆ Service() [2/2]

nfd::rib::Service::Service ( const ConfigSection config,
ndn::KeyChain keyChain 
)

create NFD-RIB service

Parameters
configparsed configuration section
keyChainthe KeyChain
Note
This constructor overload is more appropriate for integrated environments, such as NS-3 or android. Error messages related to configuration file will use "internal://nfd.conf" as configuration filename.

Definition at line 49 of file service.cpp.

◆ ~Service()

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

Destructor.

Definition at line 55 of file service.cpp.

Member Function Documentation

◆ initialize()

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::rib::INTERNAL_CONFIG, nfd::rib::RibManager, and nfd::ConfigFile::throwErrorOnUnknownSection().

Referenced by nfd::NfdRunner::run().


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