26 #ifndef NFD_RIB_SERVICE_HPP 27 #define NFD_RIB_SERVICE_HPP 33 #include <ndn-cxx/face.hpp> 34 #include <ndn-cxx/mgmt/dispatcher.hpp> 35 #include <ndn-cxx/mgmt/nfd/controller.hpp> 36 #include <ndn-cxx/security/key-chain.hpp> 37 #include <ndn-cxx/transport/transport.hpp> 38 #include <ndn-cxx/util/scheduler.hpp> 61 Service(
const std::string& configFile, ndn::KeyChain& keyChain);
95 template<
typename ConfigParseFunc>
96 Service(ndn::KeyChain& keyChain, shared_ptr<ndn::Transport> localNfdTransport,
97 const ConfigParseFunc& configParse);
100 processConfig(
const ConfigSection& section,
bool isDryRun,
const std::string& filename);
103 checkConfig(
const ConfigSection& section,
const std::string& filename);
106 applyConfig(
const ConfigSection& section,
const std::string& filename);
111 ndn::KeyChain& m_keyChain;
113 ndn::util::Scheduler m_scheduler;
114 ndn::nfd::Controller m_nfdController;
118 unique_ptr<Readvertise> m_readvertiseNlsr;
119 unique_ptr<Readvertise> m_readvertisePropagation;
120 ndn::mgmt::Dispatcher m_dispatcher;
127 #endif // NFD_RIB_SERVICE_HPP
Serve commands and datasets in NFD RIB management protocol.
represents the Routing Information Base
RibManager & getRibManager()
computes FibUpdates based on updates to the RIB and sends them to NFD
Service(const std::string &configFile, ndn::KeyChain &keyChain)
create NFD-RIB service
boost::property_tree::ptree ConfigSection
a config file section
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
initializes and executes NFD-RIB service thread