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> 42 class AutoPrefixPropagator;
61 Service(
const std::string& configFile, ndn::KeyChain& keyChain);
89 template<
typename ConfigParseFunc>
90 Service(ndn::KeyChain& keyChain, shared_ptr<ndn::Transport> localNfdTransport,
91 const ConfigParseFunc& configParse);
94 processConfig(
const ConfigSection& section,
bool isDryRun,
const std::string& filename);
97 checkConfig(
const ConfigSection& section,
const std::string& filename);
100 applyConfig(
const ConfigSection& section,
const std::string& filename);
105 ndn::KeyChain& m_keyChain;
107 ndn::nfd::Controller m_nfdController;
111 unique_ptr<AutoPrefixPropagator> m_prefixPropagator;
112 unique_ptr<Readvertise> m_readvertiseNlsr;
113 ndn::mgmt::Dispatcher m_dispatcher;
120 #endif // NFD_RIB_SERVICE_HPP
Serve commands and datasets in NFD RIB management protocol.
represents the Routing Information Base
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