22 #ifndef NLSR_HELLO_PROTOCOL_HPP
23 #define NLSR_HELLO_PROTOCOL_HPP
31 #include <ndn-cxx/face.hpp>
32 #include <ndn-cxx/security/validation-error.hpp>
33 #include <ndn-cxx/util/scheduler.hpp>
34 #include <ndn-cxx/util/signal.hpp>
99 processInterestTimedOut(
const ndn::Interest& interest);
104 onContent(
const ndn::Interest& interest,
const ndn::Data& data);
116 onContentValidated(
const ndn::Data& data);
122 onContentValidationFailed(
const ndn::Data& data,
123 const ndn::security::ValidationError& ve);
133 ndn::Scheduler m_scheduler;
134 ndn::security::KeyChain& m_keyChain;
135 const ndn::security::SigningInfo& m_signingInfo;
A class to house all the configuration parameters for NLSR.
HelloProtocol(ndn::Face &face, ndn::KeyChain &keyChain, ConfParameter &confParam, RoutingTable &routingTable, Lsdb &lsdb)
void sendHelloInterest(const ndn::Name &neighbor)
Sends Hello Interests to all neighbors.
ndn::signal::Signal< HelloProtocol, Statistics::PacketType > hpIncrementSignal
static const std::string INFO_COMPONENT
static const std::string NLSR_COMPONENT
void processInterest(const ndn::Name &name, const ndn::Interest &interest)
Processes a Hello Interest from a neighbor.
void expressInterest(const ndn::Name &interestNamePrefix, uint32_t seconds)
Sends a Hello Interest packet.
ndn::signal::Signal< HelloProtocol, const ndn::Name & > onInitialHelloDataValidated
Copyright (c) 2014-2020, The University of Memphis, Regents of the University of California.
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE