NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndnlp-data.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_DAEMON_FACE_NDNLP_PARSE_HPP
27 #define NFD_DAEMON_FACE_NDNLP_PARSE_HPP
28 
29 #include "common.hpp"
30 #include "ndnlp-tlv.hpp"
31 
32 namespace nfd {
33 namespace ndnlp {
34 
43 class NdnlpData
44 {
45 public:
49  static std::tuple<bool, NdnlpData>
50  fromBlock(const Block& wire);
51 
52 public:
53  uint64_t seq;
54  uint16_t fragIndex;
55  uint16_t fragCount;
57 };
58 
59 } // namespace ndnlp
60 } // namespace nfd
61 
62 #endif // NFD_DAEMON_FACE_NDNLP_PARSE_HPP
represents a NdnlpData packet
Definition: ndnlp-data.hpp:43
Class representing a wire element of NDN-TLV packet format.
Definition: block.hpp:43
static std::tuple< bool, NdnlpData > fromBlock(const Block &wire)
parse a NdnlpData packet
Definition: ndnlp-data.cpp:32
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:38