akmhoque | 95b7c8c | 2014-01-31 15:53: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 ptr_lib::shared_ptr<const Name> &name, |
| 20 | const ptr_lib::shared_ptr<const Interest> &interest); |
akmhoque | a8cd6b9 | 2014-01-31 20:13:26 -0600 | [diff] [blame] | 21 | void processInterestInfo(nlsr& pnlsr, string& neighbor, |
| 22 | const ptr_lib::shared_ptr<const Interest> &interest); |
akmhoque | 95b7c8c | 2014-01-31 15:53:09 -0600 | [diff] [blame] | 23 | void processInterestTimedOut(nlsr& pnlsr, |
| 24 | const ndn::ptr_lib::shared_ptr<const ndn::Interest> &interest); |
akmhoque | a8cd6b9 | 2014-01-31 20:13:26 -0600 | [diff] [blame] | 25 | void processInterestTimedOutInfo(nlsr& pnlsr, string& neighbor, |
| 26 | const ndn::ptr_lib::shared_ptr<const ndn::Interest> &interest); |
akmhoque | 95b7c8c | 2014-01-31 15:53:09 -0600 | [diff] [blame] | 27 | void expressInterest(nlsr& pnlsr,const string& interestNamePrefix, int scope, |
| 28 | int seconds); |
| 29 | void sendScheduledInfoInterest(nlsr& pnlsr, int seconds); |
| 30 | void scheduleInfoInterest(nlsr& pnlsr, int seconds); |
| 31 | |
| 32 | private: |
| 33 | |
| 34 | |
| 35 | }; |
| 36 | |
| 37 | |
| 38 | #endif |