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 | |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame^] | 12 | class Nlsr; |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 13 | |
| 14 | class interestManager{ |
| 15 | public: |
| 16 | interestManager() |
| 17 | { |
| 18 | } |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame^] | 19 | void processInterest(Nlsr& pnlsr, const ndn::Name &name, |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 20 | const ndn::Interest &interest); |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame^] | 21 | void processInterestInfo(Nlsr& pnlsr, string& neighbor, |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 22 | const ndn::Interest &interest); |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame^] | 23 | void processInterestTimedOut(Nlsr& pnlsr, const ndn::Interest &interest); |
| 24 | void processInterestTimedOutInfo(Nlsr& pnlsr, string& neighbor, |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 25 | const ndn::Interest &interest); |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame^] | 26 | void expressInterest(Nlsr& pnlsr,const string& interestNamePrefix, int scope, |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 27 | int seconds); |
akmhoque | 1a48109 | 2014-02-19 16:34:22 -0600 | [diff] [blame^] | 28 | void sendScheduledInfoInterest(Nlsr& pnlsr, int seconds); |
| 29 | void scheduleInfoInterest(Nlsr& pnlsr, int seconds); |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 30 | |
| 31 | private: |
| 32 | |
| 33 | |
| 34 | }; |
| 35 | |
| 36 | |
| 37 | #endif |