nfd::rib::Service Class Reference

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

#include <rib/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.

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.

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.