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