26 #ifndef NFD_RIB_SERVICE_HPP 27 #define NFD_RIB_SERVICE_HPP 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> 48 class Error :
public std::runtime_error
53 :
std::runtime_error(what)
63 Service(
const std::string& configFile, ndn::KeyChain& keyChain);
96 shared_ptr<ndn::Transport>
97 getLocalNfdTransport();
100 std::string m_configFile;
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;
112 #endif // NFD_RIB_SERVICE_HPP
Service(const std::string &configFile, ndn::KeyChain &keyChain)
create NFD-RIB service
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
void initialize()
Perform initialization of NFD-RIB instance.
boost::property_tree::ptree ConfigSection
a config file section
Error(const std::string &what)
initializes and executes NFD-RIB service thread