22 #ifndef NLSR_HELLO_PROTOCOL_HPP 23 #define NLSR_HELLO_PROTOCOL_HPP 28 #include <ndn-cxx/util/signal.hpp> 29 #include <ndn-cxx/face.hpp> 30 #include <ndn-cxx/mgmt/nfd/control-parameters.hpp> 31 #include <ndn-cxx/mgmt/nfd/control-response.hpp> 32 #include <ndn-cxx/util/scheduler.hpp> 33 #include <ndn-cxx/security/v2/validation-error.hpp> 115 processInterestTimedOut(
const ndn::Interest& interest);
120 onContent(
const ndn::Interest& interest,
const ndn::Data& data);
132 onContentValidated(
const ndn::Data& data);
138 onContentValidationFailed(
const ndn::Data& data,
139 const ndn::security::v2::ValidationError& ve);
151 onRegistrationFailure(
const ndn::nfd::ControlResponse& response,
152 const ndn::Name& name);
165 onRegistrationSuccess(
const ndn::nfd::ControlParameters& commandSuccessResult,
166 const ndn::Name& neighbor,
const ndn::time::milliseconds& timeout);
172 registerPrefixes(
const ndn::Name& adjName,
const std::string& faceUri,
173 double linkCost,
const ndn::time::milliseconds& timeout);
176 ndn::Scheduler& m_scheduler;
178 static const std::string INFO_COMPONENT;
179 static const std::string NLSR_COMPONENT;
184 #endif // NLSR_HELLO_PROTOCOL_HPP
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
ndn::util::signal::Signal< HelloProtocol, Statistics::PacketType > hpIncrementSignal
void expressInterest(const ndn::Name &interestNamePrefix, uint32_t seconds)
Sends a Hello Interest packet.
void scheduleInterest(uint32_t seconds)
Schedules a Hello Interest event.
void processInterest(const ndn::Name &name, const ndn::Interest &interest)
Processes a Hello Interest from a neighbor.
void sendScheduledInterest(uint32_t seconds)
Sends Hello Interests to all neighbors.
HelloProtocol(Nlsr &nlsr, ndn::Scheduler &scheduler)
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.