blob: 6e71500239f7526dcda0ecb66a2c50e99096db1f [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#ifndef NLSR_IM_HPP
2#define NLSR_IM_HPP
3
4#include <ndn-cpp-dev/face.hpp>
5#include <ndn-cpp-dev/security/key-chain.hpp>
6#include <ndn-cpp-dev/util/scheduler.hpp>
7
8
9using namespace ndn;
10using namespace std;
11
12class nlsr;
13
14class interestManager{
15public:
16 interestManager()
17 {
18 }
19 void processInterest(nlsr& pnlsr, const ndn::Name &name,
20 const ndn::Interest &interest);
21 void processInterestInfo(nlsr& pnlsr, string& neighbor,
22 const ndn::Interest &interest);
23 void processInterestTimedOut(nlsr& pnlsr, const ndn::Interest &interest);
24 void processInterestTimedOutInfo(nlsr& pnlsr, string& neighbor,
25 const ndn::Interest &interest);
26 void expressInterest(nlsr& pnlsr,const string& interestNamePrefix, int scope,
27 int seconds);
28 void sendScheduledInfoInterest(nlsr& pnlsr, int seconds);
29 void scheduleInfoInterest(nlsr& pnlsr, int seconds);
30
31private:
32
33
34};
35
36
37#endif