26 #ifndef NFD_RIB_AUTO_PREFIX_PROPAGATOR_HPP 27 #define NFD_RIB_AUTO_PREFIX_PROPAGATOR_HPP 33 #include <ndn-cxx/security/key-chain.hpp> 34 #include <ndn-cxx/mgmt/nfd/controller.hpp> 35 #include <ndn-cxx/mgmt/nfd/control-command.hpp> 36 #include <ndn-cxx/mgmt/nfd/control-parameters.hpp> 37 #include <ndn-cxx/mgmt/nfd/command-options.hpp> 38 #include <ndn-cxx/util/signal.hpp> 79 class Error :
public std::runtime_error
84 :
std::runtime_error(what)
122 typedef std::unordered_map<Name, PropagatedEntry> PropagatedEntryList;
131 struct PrefixPropagationParameters
151 PrefixPropagationParameters
152 getPrefixPropagationParameters(
const Name& localRibPrefix);
163 doesCurrentPropagatedPrefixWork(
const Name& prefix);
179 redoPropagation(PropagatedEntryIt entryIt,
182 time::seconds retryWaitTime);
207 time::seconds retryWaitTime);
219 time::seconds retryWaitTime);
231 afterInsertRibEntry(
const Name& prefix);
244 afterEraseRibEntry(
const Name& prefix);
289 afterHubDisconnect();
333 time::seconds retryWaitTime,
353 time::seconds retryWaitTime);
395 time::seconds retryWaitTime);
405 time::seconds m_refreshInterval;
406 time::seconds m_baseRetryWait;
407 time::seconds m_maxRetryWait;
408 bool m_hasConnectedHub;
409 PropagatedEntryList m_propagatedEntries;
415 #endif // NFD_RIB_AUTO_PREFIX_PROPAGATOR_HPP #define PUBLIC_WITH_TESTS_ELSE_PRIVATE
function< void()> EventCallback
represents the Routing Information Base
represents parameters in a ControlCommand request or response
void disable()
disable automatic prefix propagation
Table::const_iterator iterator
contains options for ControlCommand execution
Copyright (c) 2011-2015 Regents of the University of California.
void loadConfig(const ConfigSection &configSection)
load the "auto_prefix_propagate" section from config file
disconnects a Connection automatically upon destruction
NFD Management protocol client.
boost::property_tree::ptree ConfigSection
a config file section
Represents an absolute name.
void enable()
enable automatic prefix propagation
AutoPrefixPropagator(ndn::nfd::Controller &controller, ndn::KeyChain &keyChain, Rib &rib)
provides automatic prefix propagation feature
Error(const std::string &what)