blob: 5e2f6c4ccebec888fad77477a898a252dd69b452 [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>
using namespace ndn;
using namespace std;
class Nlsr;
class interestManager{
public:
interestManager()
{
}
void processInterest(Nlsr& pnlsr, const ndn::Name &name,
const ndn::Interest &interest);
void processInterestInfo(Nlsr& pnlsr, string& neighbor,
const ndn::Interest &interest);
void processInterestTimedOut(Nlsr& pnlsr, const ndn::Interest &interest);
void processInterestTimedOutInfo(Nlsr& pnlsr, string& neighbor,
const ndn::Interest &interest);
void expressInterest(Nlsr& pnlsr,const string& interestNamePrefix, int scope,
int seconds);
void sendScheduledInfoInterest(Nlsr& pnlsr, int seconds);
void scheduleInfoInterest(Nlsr& pnlsr, int seconds);
private:
};
#endif