Class representing NFD instance This class can be used to initialize all components of NFD.
More...
#include <daemon/nfd.hpp>
|
| 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.
Definition at line 60 of file nfd.hpp.
nfd::Nfd::Nfd |
( |
const std::string & |
configFile, |
|
|
ndn::KeyChain & |
keyChain |
|
) |
| |
Create NFD instance using absolute or relative path to configFile
.
Definition at line 55 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 61 of file nfd.cpp.
void nfd::Nfd::initialize |
( |
| ) |
|
Perform initialization of NFD instance After initialization, NFD instance can be started by invoking run on globalIoService.
Definition at line 73 of file nfd.cpp.
void nfd::Nfd::reloadConfigFile |
( |
| ) |
|
Reload configuration file and apply update (if any)
- Todo:
- Reopen log file
Definition at line 174 of file nfd.cpp.