22 #ifndef NLSR_HELLO_PROTOCOL_HPP 23 #define NLSR_HELLO_PROTOCOL_HPP 31 #include <ndn-cxx/util/signal.hpp> 32 #include <ndn-cxx/face.hpp> 33 #include <ndn-cxx/mgmt/nfd/control-parameters.hpp> 34 #include <ndn-cxx/mgmt/nfd/control-response.hpp> 35 #include <ndn-cxx/util/scheduler.hpp> 36 #include <ndn-cxx/security/v2/validation-error.hpp> 37 #include <ndn-cxx/security/validator-config.hpp> 102 processInterestTimedOut(
const ndn::Interest& interest);
107 onContent(
const ndn::Interest& interest,
const ndn::Data& data);
119 onContentValidated(
const ndn::Data& data);
125 onContentValidationFailed(
const ndn::Data& data,
126 const ndn::security::v2::ValidationError& ve);
138 onRegistrationFailure(
const ndn::nfd::ControlResponse& response,
139 const ndn::Name& name);
152 onRegistrationSuccess(
const ndn::nfd::ControlParameters& commandSuccessResult,
153 const ndn::Name& neighbor,
const ndn::time::milliseconds& timeout);
160 ndn::Scheduler m_scheduler;
161 ndn::security::v2::KeyChain& m_keyChain;
162 const ndn::security::SigningInfo& m_signingInfo;
168 static const std::string INFO_COMPONENT;
169 static const std::string NLSR_COMPONENT;
174 #endif // NLSR_HELLO_PROTOCOL_HPP
A class to house all the configuration parameters for NLSR.
#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.
ndn::util::Signal< HelloProtocol, const ndn::Name & > onHelloDataValidated
void processInterest(const ndn::Name &name, const ndn::Interest &interest)
Processes a Hello Interest from a neighbor.
void sendHelloInterest(const ndn::Name &neighbor)
Sends Hello Interests to all neighbors.
Copyright (c) 2014-2019, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
HelloProtocol(ndn::Face &face, ndn::KeyChain &keyChain, ConfParameter &confParam, RoutingTable &routingTable, Lsdb &lsdb)