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

Class representing NFD instance This class can be used to initialize all components of NFD. More...

#include <nfd.hpp>

Inheritance diagram for nfd::Nfd:
Collaboration diagram for nfd::Nfd:

Public Member Functions

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

Detailed Description

Class representing NFD instance This class can be used to initialize all components of NFD.

Definition at line 49 of file nfd.hpp.

Constructor & Destructor Documentation

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

Create NFD instance using absolute or relative path to configFile.

Definition at line 48 of file nfd.cpp.

nfd::Nfd::Nfd ( const ConfigSection config,
ndn::KeyChain &  keyChain 
)

Create NFD 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 55 of file nfd.cpp.

nfd::Nfd::~Nfd ( )

Destructor.

Definition at line 62 of file nfd.cpp.

Member Function Documentation

void nfd::Nfd::initialize ( )

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

Definition at line 70 of file nfd.cpp.

References nfd::PrivilegeHelper::drop(), nfd::FACEID_CONTENT_STORE, nfd::FACEID_NULL, nfd::Forwarder, nfd::ConfigFile::ignoreUnknownSection(), NFD_LOG_INFO, ndn::util::NetworkMonitor::onNetworkStateChanged, nfd::ConfigFile::parse(), and nfd::scheduler::schedule().

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

void nfd::Nfd::reloadConfigFile ( )

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