blob: 153e0a04d44c86a21a061022ef2aa01a5c8582ff [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#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
10namespace nlsr {
11class Nlsr;
12
13class DataManager
14{
15public:
16 void
17 processContent(Nlsr& pnlsr, const ndn::Interest& interest,
18 const ndn::Data& data, InterestManager& im);
19private:
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