NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
nfd.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_NFD_HPP
27
#define NFD_DAEMON_NFD_HPP
28
29
#include "common.hpp"
30
#include "
core/config-file.hpp
"
31
#include "
core/scheduler.hpp
"
32
33
#include <ndn-cxx/security/key-chain.hpp>
34
#include <ndn-cxx/util/network-monitor.hpp>
35
36
namespace
nfd
{
37
38
class
Forwarder
;
39
class
InternalFace
;
40
class
FibManager
;
41
class
FaceManager
;
42
class
StrategyChoiceManager
;
43
class
StatusServer;
44
49
class
Nfd
: noncopyable
50
{
51
public
:
55
Nfd
(
const
std::string& configFile, ndn::KeyChain& keyChain);
56
64
Nfd
(
const
ConfigSection
& config, ndn::KeyChain& keyChain);
65
69
~Nfd
();
70
75
void
76
initialize
();
77
81
void
82
reloadConfigFile
();
83
84
private
:
85
void
86
initializeLogging();
87
88
void
89
initializeManagement();
90
91
void
92
reloadConfigFileFaceSection();
93
94
private
:
95
std::string m_configFile;
96
ConfigSection
m_configSection;
97
98
unique_ptr<Forwarder> m_forwarder;
99
100
shared_ptr<InternalFace> m_internalFace;
101
unique_ptr<FibManager> m_fibManager;
102
unique_ptr<FaceManager> m_faceManager;
103
unique_ptr<StrategyChoiceManager> m_strategyChoiceManager;
104
unique_ptr<StatusServer> m_statusServer;
105
106
ndn::KeyChain& m_keyChain;
107
108
ndn::util::NetworkMonitor
m_networkMonitor;
109
scheduler::ScopedEventId
m_reloadConfigEvent;
110
};
111
112
}
// namespace nfd
113
114
#endif // NFD_DAEMON_NFD_HPP
nfd::Nfd::Nfd
Nfd(const std::string &configFile, ndn::KeyChain &keyChain)
Create NFD instance using absolute or relative path to configFile.
Definition:
nfd.cpp:48
nfd::StrategyChoiceManager
StrategyChoiceManager
Definition:
strategy-choice-manager.cpp:33
ndn::util::NetworkMonitor
Network state change monitor.
Definition:
network-monitor.hpp:48
nfd::FibManager
FibManager
Definition:
fib-manager.cpp:38
nfd::FaceManager
FaceManager
Definition:
face-manager.cpp:38
config-file.hpp
nfd::Nfd::reloadConfigFile
void reloadConfigFile()
Reload configuration file and apply update (if any)
Definition:
nfd.cpp:177
nfd::Nfd
Class representing NFD instance This class can be used to initialize all components of NFD...
Definition:
nfd.hpp:49
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:38
nfd::InternalFace
InternalFace
Definition:
internal-face.cpp:32
nfd::scheduler::ScopedEventId
cancels an event automatically upon destruction
Definition:
scheduler.hpp:53
nfd::ConfigSection
boost::property_tree::ptree ConfigSection
Definition:
ndn-l3-protocol.hpp:39
nfd::Forwarder
Forwarder
Definition:
forwarder.cpp:38
scheduler.hpp
nfd::Nfd::initialize
void initialize()
Perform initialization of NFD instance After initialization, NFD instance can be started by invoking ...
Definition:
nfd.cpp:70
nfd::Nfd::~Nfd
~Nfd()
Destructor.
Definition:
nfd.cpp:62
ndnSIM
NFD
daemon
nfd.hpp
Generated on Tue Feb 23 2016 22:18:44 for ndnSIM by
1.8.11