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
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
g
i
k
l
m
n
p
r
s
u
w
+
Related Functions
b
c
d
f
i
k
l
n
o
p
s
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
nrd.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_RIB_NRD_HPP
27
#define NFD_RIB_NRD_HPP
28
29
#include "common.hpp"
30
#include "
core/config-file.hpp
"
31
32
#include <ndn-cxx/face.hpp>
33
#include <ndn-cxx/security/key-chain.hpp>
34
#include <ndn-cxx/transport/transport.hpp>
35
36
namespace
nfd
{
37
namespace
rib {
38
39
class
RibManager
;
40
45
class
Nrd
: noncopyable
46
{
47
public
:
48
class
Error
:
public
std::runtime_error
49
{
50
public
:
51
explicit
52
Error
(
const
std::string& what)
53
:
std
::runtime_error(what)
54
{
55
}
56
};
57
61
Nrd
(
const
std::string& configFile,
ndn::KeyChain
& keyChain);
62
70
Nrd
(
const
ConfigSection
& config,
ndn::KeyChain
& keyChain);
71
75
~Nrd
();
76
81
void
82
initialize
();
83
84
private
:
85
void
86
initializeLogging();
87
92
shared_ptr<ndn::Transport>
93
getLocalNfdTransport();
94
95
private
:
96
std::string m_configFile;
97
ConfigSection
m_configSection;
98
99
ndn::KeyChain
& m_keyChain;
100
unique_ptr<ndn::Face> m_face;
101
unique_ptr<RibManager> m_ribManager;
102
};
103
104
}
// namespace rib
105
}
// namespace nfd
106
107
#endif // NFD_RIB_NRD_HPP
nfd::rib::RibManager
RibManager
Definition:
rib-manager.cpp:35
ndn::security::KeyChain
The packet signing interface.
Definition:
key-chain.hpp:48
std
STL namespace.
nfd::rib::Nrd::Error
Definition:
nrd.hpp:48
nfd::rib::Nrd::Nrd
Nrd(const std::string &configFile, ndn::KeyChain &keyChain)
Create NRD instance using absolute or relative path to configFile.
Definition:
nrd.cpp:43
nfd::rib::Nrd
Class representing NRD (NFD RIB Manager) instance This class can be used to initialize all components...
Definition:
nrd.hpp:45
config-file.hpp
nfd::rib::Nrd::Error::Error
Error(const std::string &what)
Definition:
nrd.hpp:52
nfd::rib::Nrd::~Nrd
~Nrd()
Destructor.
Definition:
nrd.cpp:55
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::ConfigSection
boost::property_tree::ptree ConfigSection
Definition:
ndn-l3-protocol.hpp:38
nfd::rib::Nrd::initialize
void initialize()
Perform initialization of NFD instance After initialization, NFD instance can be started by invoking ...
Definition:
nrd.cpp:63
ndnSIM
NFD
rib
nrd.hpp
Generated on Sat Nov 12 2016 16:02:54 for ndnSIM by
1.8.12