26 #ifndef NFD_DAEMON_NFD_HPP
27 #define NFD_DAEMON_NFD_HPP
31 #include <ndn-cxx/face.hpp>
32 #include <ndn-cxx/mgmt/dispatcher.hpp>
33 #include <ndn-cxx/net/network-monitor.hpp>
34 #include <ndn-cxx/security/key-chain.hpp>
35 #include <ndn-cxx/util/scheduler.hpp>
42 class CommandAuthenticator;
43 class ForwarderStatusManager;
47 class StrategyChoiceManager;
59 class Nfd : noncopyable
65 Nfd(
const std::string& configFile, ndn::KeyChain& keyChain);
99 Nfd(ndn::KeyChain& keyChain);
105 initializeManagement();
108 reloadConfigFileFaceSection();
111 std::string m_configFile;
114 unique_ptr<FaceTable> m_faceTable;
115 unique_ptr<face::FaceSystem> m_faceSystem;
116 unique_ptr<Forwarder> m_forwarder;
118 ndn::KeyChain& m_keyChain;
119 shared_ptr<face::Face> m_internalFace;
120 shared_ptr<ndn::Face> m_internalClientFace;
121 unique_ptr<ndn::mgmt::Dispatcher> m_dispatcher;
122 shared_ptr<CommandAuthenticator> m_authenticator;
123 unique_ptr<ForwarderStatusManager> m_forwarderStatusManager;
124 unique_ptr<FaceManager> m_faceManager;
125 unique_ptr<FibManager> m_fibManager;
126 unique_ptr<CsManager> m_csManager;
127 unique_ptr<StrategyChoiceManager> m_strategyChoiceManager;
129 shared_ptr<ndn::net::NetworkMonitor> m_netmon;
130 ndn::scheduler::ScopedEventId m_reloadConfigEvent;
Class representing the NFD instance.
void initialize()
Perform initialization of NFD instance.
Nfd(const std::string &configFile, ndn::KeyChain &keyChain)
Create NFD instance using an absolute or relative path to a configuration file.
void reloadConfigFile()
Reload configuration file and apply updates (if any).
boost::property_tree::ptree ConfigSection
A configuration file section.