Class representing NFD instance This class can be used to initialize all components of NFD. More...
#include <nfd.hpp>
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... | |
Class representing NFD instance This class can be used to initialize all components of NFD.
nfd::Nfd::Nfd | ( | const std::string & | configFile, |
ndn::KeyChain & | keyChain | ||
) |
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.
Definition at line 67 of file nfd.cpp.
References ~Nfd().
|
default |
Destructor.
Referenced by Nfd().
void nfd::Nfd::initialize | ( | ) |
Perform initialization of NFD instance After initialization, NFD instance can be started by invoking run on globalIoService.
Definition at line 80 of file nfd.cpp.
References nfd::FaceTable::addReserved(), nfd::PrivilegeHelper::drop(), nfd::face::FACEID_CONTENT_STORE, nfd::face::FACEID_NULL, nfd::Forwarder, nfd::ConfigFile::ignoreUnknownSection(), nfd::face::makeNullFace(), NFD_LOG_INFO, nfd::ConfigFile::parse(), and nfd::scheduler::schedule().
Referenced by nfd::NfdRunner::initialize().
void nfd::Nfd::reloadConfigFile | ( | ) |
Reload configuration file and apply update (if any)
Definition at line 183 of file nfd.cpp.
References nfd::ignoreRibAndLogSections(), nfd::ConfigFile::ignoreUnknownSection(), nfd::ConfigFile::parse(), nfd::TablesConfigSection::setConfigFile(), and nfd::general::setConfigFile().
Referenced by nfd::NfdRunner::reload().