22 #ifndef NLSR_SYNC_LOGIC_HANDLER_HPP
23 #define NLSR_SYNC_LOGIC_HANDLER_HPP
43 class Error :
public std::runtime_error
46 using std::runtime_error::runtime_error;
50 std::function<bool(
const ndn::Name&,
const Lsa::Type& lsaType,
const uint64_t&, uint64_t)>;
75 processUpdate(
const ndn::Name& updateName, uint64_t highSeq, uint64_t incomingFaceId);
86 processUpdateFromSync(
const ndn::Name& originRouter,
87 const ndn::Name& updateName, uint64_t seqNo, uint64_t incomingFaceId);
97 ndn::Name m_nameLsaUserPrefix;
98 ndn::Name m_adjLsaUserPrefix;
99 ndn::Name m_coorLsaUserPrefix;
A class to house all the configuration parameters for NLSR.
NLSR-to-ChronoSync interaction point.
void publishRoutingUpdate(const Lsa::Type &type, const uint64_t &seqNo)
Instruct ChronoSync to publish an update.
SyncLogicHandler(ndn::Face &face, ndn::KeyChain &keyChain, IsLsaNew isLsaNew, const ConfParameter &conf)
std::function< bool(const ndn::Name &, const Lsa::Type &lsaType, const uint64_t &, uint64_t)> IsLsaNew
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.
ndn::util::Signal< SyncLogicHandler, ndn::Name, uint64_t, ndn::Name, uint64_t > OnNewLsa
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE