NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: 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

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.

Referenced by nfd::rib::Service::Error::Error().

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.

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

Destructor.

Definition at line 55 of file service.cpp.

Referenced by nfd::rib::Service::Error::Error().

Member Function Documentation

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


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