blob: 86d590b07be5078bfc47e11478b3292770def46a [file] [log] [blame]
#ifndef NLSR_IM_HPP
#define NLSR_IM_HPP
#include <ndn-cpp-dev/face.hpp>
#include <ndn-cpp-dev/security/key-chain.hpp>
#include <ndn-cpp-dev/util/scheduler.hpp>
namespace nlsr {
class Nlsr;
class InterestManager
{
public:
InterestManager(Nlsr& nlsr)
: m_nlsr(nlsr)
{
}
void
processInterest(const ndn::Name& name, const ndn::Interest& interest);
void
processInterestInfo(const std::string& neighbor, const ndn::Interest& interest);
void
processInterestLsa(const ndn::Interest& interest);
void
processInterestForNameLsa(const ndn::Interest& interest,
const std::string& lsaKey, uint32_t interestedlsSeqNo);
void
processInterestForAdjLsa(const ndn::Interest& interest,
const std::string& lsaKey, uint32_t interestedlsSeqNo);
void
processInterestForCorLsa(const ndn::Interest& interest,
const std::string& lsaKey, uint32_t interestedlsSeqNo);
void
processInterestKeys(const ndn::Interest& interest);
void
processInterestTimedOut(const ndn::Interest& interest);
void
processInterestTimedOutInfo(const std::string& neighbor,
const ndn::Interest& interest);
void
processInterestTimedOutLsa(const ndn::Interest& interest);
void
expressInterest(const std::string& interestNamePrefix, int scope, int seconds);
void
sendScheduledInfoInterest(int seconds);
void
scheduleInfoInterest(int seconds);
private:
Nlsr& m_nlsr;
};
}//namespace nlsr
#endif //NLSR_IM_HPP