22 #ifndef NLSR_SYNC_LOGIC_HANDLER_HPP
23 #define NLSR_SYNC_LOGIC_HANDLER_HPP
31 #include <boost/lexical_cast.hpp>
48 return ndn::Name(userPrefix).append(boost::lexical_cast<std::string>(lsaType));
59 class Error :
public std::runtime_error
62 using std::runtime_error::runtime_error;
66 bool (
const ndn::Name& routerName,
Lsa::Type lsaType, uint64_t seqNo, uint64_t inFace)
92 processUpdate(
const ndn::Name& updateName, uint64_t highSeq, uint64_t incomingFaceId);
103 processUpdateFromSync(
const ndn::Name& originRouter,
104 const ndn::Name& updateName, uint64_t seqNo, uint64_t incomingFaceId);
111 ndn::Name m_routerPrefix;
115 ndn::Name m_nameLsaUserPrefix;
116 ndn::Name m_adjLsaUserPrefix;
117 ndn::Name m_coorLsaUserPrefix;
NLSR-to-sync interaction point.
void publishRoutingUpdate(Lsa::Type type, uint64_t seqNo)
Instruct ChronoSync to publish an update.
std::function< bool(const ndn::Name &routerName, Lsa::Type lsaType, uint64_t seqNo, uint64_t inFace) > IsLsaNew
SyncLogicHandler(ndn::Face &face, ndn::KeyChain &keyChain, IsLsaNew isLsaNew, const SyncLogicOptions &opts)
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.
ndn::Name makeLsaUserPrefix(const ndn::Name &userPrefix, Lsa::Type lsaType)
ndn::signal::Signal< SyncLogicHandler, ndn::Name, uint64_t, ndn::Name, uint64_t > OnNewLsa
HyperbolicState hyperbolicState
ndn::time::milliseconds syncInterestLifetime
SyncProtocol syncProtocol
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE