akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 1 | #ifndef NLSR_DM_HPP |
| 2 | #define NLSR_DM_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 | #include "nlsr_im.hpp" |
| 9 | |
| 10 | namespace nlsr |
| 11 | { |
| 12 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 13 | using namespace ndn; |
| 14 | using namespace std; |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 15 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 16 | class Nlsr; |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 17 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 18 | class DataManager |
| 19 | { |
| 20 | public: |
akmhoque | 05d5fcf | 2014-04-15 14:58:45 -0500 | [diff] [blame^] | 21 | void processContent(Nlsr& pnlsr, const ndn::Interest& interest, |
| 22 | const ndn::Data& data, InterestManager& im); |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 23 | private: |
| 24 | void processContentInfo(Nlsr& pnlsr, string& dataName, |
| 25 | string& dataContent); |
| 26 | void processContentLsa(Nlsr& pnlsr, string& dataName, |
| 27 | string& dataContent); |
| 28 | void processContentNameLsa(Nlsr& pnlsr, string lsaKey, |
| 29 | uint32_t lsSeqNo, string& dataContent); |
| 30 | void processContentAdjLsa(Nlsr& pnlsr, string lsaKey, |
| 31 | uint32_t lsSeqNo, string& dataContent); |
| 32 | void processContentCorLsa(Nlsr& pnlsr, string lsaKey, |
| 33 | uint32_t lsSeqNo, string& dataContent); |
| 34 | void processContentKeys(Nlsr& pnlsr, const ndn::Data& data); |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 35 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 36 | |
| 37 | }; |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 38 | |
| 39 | }//namespace nlsr |
| 40 | #endif |