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

Class representing NRD (NFD RIB Manager) instance This class can be used to initialize all components of NRD. More...

#include <nrd.hpp>

Inheritance diagram for nfd::rib::Nrd:
Collaboration diagram for nfd::rib::Nrd:

Classes

class  Error
 

Public Member Functions

 Nrd (const std::string &configFile, ndn::KeyChain &keyChain)
 Create NRD instance using absolute or relative path to configFile. More...
 
 Nrd (const ConfigSection &config, ndn::KeyChain &keyChain)
 Create NRD instance using a parsed ConfigSection config This version of the constructor is more appropriate for integrated environments, such as NS-3 or android. More...
 
 ~Nrd ()
 Destructor. More...
 
void initialize ()
 Perform initialization of NFD instance After initialization, NFD instance can be started by invoking run on globalIoService. More...
 

Detailed Description

Class representing NRD (NFD RIB Manager) instance This class can be used to initialize all components of NRD.

Definition at line 45 of file nrd.hpp.

Constructor & Destructor Documentation

§ Nrd() [1/2]

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

Create NRD instance using absolute or relative path to configFile.

Definition at line 43 of file nrd.cpp.

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

§ Nrd() [2/2]

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

Create NRD instance using a parsed ConfigSection config This version of the constructor is more appropriate for integrated environments, such as NS-3 or android.

Note
When using this version of the constructor, error messages will include "internal://nfd.conf" when referring to configuration errors.

Definition at line 49 of file nrd.cpp.

§ ~Nrd()

nfd::rib::Nrd::~Nrd ( )

Destructor.

Definition at line 55 of file nrd.cpp.

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

Member Function Documentation

§ initialize()

void nfd::rib::Nrd::initialize ( )

Perform initialization of NFD instance After initialization, NFD instance can be started by invoking run on globalIoService.

Definition at line 63 of file nrd.cpp.

References nfd::getGlobalIoService(), nfd::ConfigFile::ignoreUnknownSection(), nfd::ConfigFile::parse(), nfd::rib::RibManager, and nfd::ConfigFile::throwErrorOnUnknownSection().

Referenced by nfd::rib::Nrd::Error::Error(), and nfd::NfdRunner::run().


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