represents a NdnlpData packet More...
#include <ndnlp-data.hpp>
Static Public Member Functions | |
static std::tuple< bool, NdnlpData > | fromBlock (const Block &wire) |
parse a NdnlpData packet More... | |
Public Attributes | |
uint64_t | seq |
uint16_t | fragIndex |
uint16_t | fragCount |
Block | payload |
represents a NdnlpData packet
NdnlpData ::= NDNLP-DATA-TYPE TLV-LENGTH NdnlpSequence NdnlpFragIndex? NdnlpFragCount? NdnlpPayload
Definition at line 43 of file ndnlp-data.hpp.
parse a NdnlpData packet
wire
has a valid NdnlpData packet, and the parsed packet Definition at line 32 of file ndnlp-data.cpp.
References ndn::Block::elements(), fragCount, fragIndex, nfd::tlv::NdnlpData, nfd::tlv::NdnlpFragCount, nfd::tlv::NdnlpFragIndex, nfd::tlv::NdnlpPayload, nfd::tlv::NdnlpSequence, ndn::Block::parse(), payload, ndn::encoding::readNonNegativeInteger(), seq, ndn::Block::type(), ndn::Block::value_begin(), and ndn::Block::value_size().
uint64_t nfd::ndnlp::NdnlpData::seq |
Definition at line 53 of file ndnlp-data.hpp.
Referenced by fromBlock(), and nfd::ndnlp::PartialMessageStore::receive().
uint16_t nfd::ndnlp::NdnlpData::fragIndex |
Definition at line 54 of file ndnlp-data.hpp.
Referenced by fromBlock(), and nfd::ndnlp::PartialMessageStore::receive().
uint16_t nfd::ndnlp::NdnlpData::fragCount |
Definition at line 55 of file ndnlp-data.hpp.
Referenced by fromBlock(), nfd::ndnlp::PartialMessage::reassembleSingle(), and nfd::ndnlp::PartialMessageStore::receive().
Block nfd::ndnlp::NdnlpData::payload |
Definition at line 56 of file ndnlp-data.hpp.
Referenced by fromBlock(), nfd::ndnlp::PartialMessage::reassembleSingle(), and nfd::ndnlp::PartialMessageStore::receive().