akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame^] | 1 | #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 | |
| 9 | using namespace ndn; |
| 10 | using namespace std; |
| 11 | |
| 12 | class nlsr; |
| 13 | |
| 14 | class interestManager{ |
| 15 | public: |
| 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 | |
| 31 | private: |
| 32 | |
| 33 | |
| 34 | }; |
| 35 | |
| 36 | |
| 37 | #endif |