Class representing the NFD instance. More...
#include <nfd.hpp>


Public Member Functions | |
| Nfd (const std::string &configFile, ndn::KeyChain &keyChain) | |
| Create NFD instance using an absolute or relative path to a configuration file. More... | |
| Nfd (const ConfigSection &config, ndn::KeyChain &keyChain) | |
| Create NFD instance using a parsed ConfigSection. More... | |
| ~Nfd () | |
| Destructor. More... | |
| void | initialize () |
| Perform initialization of NFD instance. More... | |
| void | reloadConfigFile () |
| Reload configuration file and apply updates (if any). More... | |
Class representing the NFD instance.
This class is 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.
This version of the constructor is more appropriate for integrated environments, such as NS-3 or Android.
Definition at line 64 of file nfd.cpp.
References ~Nfd().
|
default |
Destructor.
Referenced by Nfd().
| void nfd::Nfd::initialize | ( | ) |
Perform initialization of NFD instance.
After initialization, NFD can be started by invoking getGlobalIoService().run().
Definition at line 76 of file nfd.cpp.
References nfd::PrivilegeHelper::drop(), nfd::face::FACEID_CONTENT_STORE, nfd::face::FACEID_NULL, nfd::getScheduler(), nfd::ConfigFile::ignoreUnknownSection(), nfd::INTERNAL_CONFIG(), nfd::face::makeNullFace(), NFD_LOG_INFO, nfd::ConfigFile::parse(), and nfd::log::setConfigFile().
Referenced by nfd::NfdRunner::initialize().
| void nfd::Nfd::reloadConfigFile | ( | ) |
Reload configuration file and apply updates (if any).
Definition at line 181 of file nfd.cpp.
References nfd::ignoreRibAndLogSections(), nfd::ConfigFile::ignoreUnknownSection(), nfd::INTERNAL_CONFIG(), nfd::ConfigFile::parse(), nfd::general::setConfigFile(), and nfd::TablesConfigSection::setConfigFile().
Referenced by nfd::NfdRunner::systemdNotify().