nfd::Nfd Class Reference

Class representing the NFD instance. More...

#include <daemon/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 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...
 

Detailed Description

Class representing the NFD instance.

This class is used to initialize all components of NFD.

Definition at line 58 of file nfd.hpp.

Constructor & Destructor Documentation

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

Create NFD instance using an absolute or relative path to a configuration file.

Definition at line 57 of file nfd.cpp.

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.

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

Definition at line 63 of file nfd.cpp.

nfd::Nfd::~Nfd ( )
default

Destructor.

Member Function Documentation

void nfd::Nfd::initialize ( )

Perform initialization of NFD instance.

After initialization, NFD can be started by invoking getGlobalIoService().run().

Definition at line 75 of file nfd.cpp.

void nfd::Nfd::reloadConfigFile ( )

Reload configuration file and apply updates (if any).

Definition at line 179 of file nfd.cpp.