NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
service.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_RIB_SERVICE_HPP
27
#define NFD_RIB_SERVICE_HPP
28
29
#include "
core/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
#include <ndn-cxx/mgmt/dispatcher.hpp>
36
37
namespace
nfd
{
38
namespace
rib {
39
40
class
RibManager
;
41
45
class
Service
: 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
63
Service
(
const
std::string& configFile,
ndn::KeyChain
& keyChain);
64
73
Service
(
const
ConfigSection
& config,
ndn::KeyChain
& keyChain);
74
78
~Service
();
79
85
void
86
initialize
();
87
88
private
:
89
void
90
initializeLogging();
91
96
shared_ptr<ndn::Transport>
97
getLocalNfdTransport();
98
99
private
:
100
std::string m_configFile;
101
ConfigSection
m_configSection;
102
103
ndn::KeyChain
& m_keyChain;
104
unique_ptr<ndn::Face> m_face;
105
unique_ptr<ndn::mgmt::Dispatcher> m_dispatcher;
106
unique_ptr<RibManager> m_ribManager;
107
};
108
109
}
// namespace rib
110
}
// namespace nfd
111
112
#endif // NFD_RIB_SERVICE_HPP
nfd::rib::Service::Error
Definition:
service.hpp:48
ndn::security::v2::KeyChain
The interface of signing key management.
Definition:
key-chain.hpp:46
nfd::rib::Service
initializes and executes NFD-RIB service thread
Definition:
service.hpp:45
nfd::rib::RibManager
RibManager
Definition:
rib-manager.cpp:45
std
STL namespace.
nfd::rib::Service::initialize
void initialize()
Perform initialization of NFD-RIB instance.
Definition:
service.cpp:63
config-file.hpp
common.hpp
nfd::rib::Service::Error::Error
Error(const std::string &what)
Definition:
service.hpp:52
nfd::rib::Service::Service
Service(const std::string &configFile, ndn::KeyChain &keyChain)
create NFD-RIB service
Definition:
service.cpp:43
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::ConfigSection
boost::property_tree::ptree ConfigSection
a config file section
Definition:
ndn-l3-protocol.hpp:38
nfd::rib::Service::~Service
~Service()
Destructor.
Definition:
service.cpp:55
ndnSIM
NFD
rib
service.hpp
Generated on Sun Feb 25 2018 13:27:06 for ndnSIM by
1.8.14