akmhoque | 5335346 | 2014-04-22 08:43:45 -0500 | [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 "interest-manager.hpp" |
| 9 | |
| 10 | namespace nlsr { |
| 11 | class Nlsr; |
| 12 | |
| 13 | class DataManager |
| 14 | { |
| 15 | public: |
| 16 | void |
| 17 | processContent(Nlsr& pnlsr, const ndn::Interest& interest, |
| 18 | const ndn::Data& data, InterestManager& im); |
| 19 | private: |
| 20 | void |
| 21 | processContentInfo(Nlsr& pnlsr, std::string& dataName, |
| 22 | std::string& dataContent); |
| 23 | |
| 24 | void |
| 25 | processContentLsa(Nlsr& pnlsr, std::string& dataName, |
| 26 | std::string& dataContent); |
| 27 | |
| 28 | void |
| 29 | processContentNameLsa(Nlsr& pnlsr, std::string lsaKey, |
| 30 | uint32_t lsSeqNo, std::string& dataContent); |
| 31 | |
| 32 | void |
| 33 | processContentAdjLsa(Nlsr& pnlsr, std::string lsaKey, |
| 34 | uint32_t lsSeqNo, std::string& dataContent); |
| 35 | |
| 36 | void |
| 37 | processContentCorLsa(Nlsr& pnlsr, std::string lsaKey, |
| 38 | uint32_t lsSeqNo, std::string& dataContent); |
| 39 | |
| 40 | void |
| 41 | processContentKeys(Nlsr& pnlsr, const ndn::Data& data); |
| 42 | |
| 43 | |
| 44 | }; |
| 45 | |
| 46 | }//namespace nlsr |
| 47 | |
| 48 | #endif //NLSR_DM_HPP |