represents a partially received message More...
#include <ndnlp-partial-message-store.hpp>
Public Member Functions | |
PartialMessage () | |
PartialMessage (const PartialMessage &)=delete | |
PartialMessage & | operator= (const PartialMessage &)=delete |
PartialMessage (PartialMessage &&)=default | |
PartialMessage & | operator= (PartialMessage &&)=default |
bool | add (uint16_t fragIndex, uint16_t fragCount, const Block &payload) |
bool | isComplete () const |
std::tuple< bool, Block > | reassemble () |
reassemble network layer packet More... | |
Static Public Member Functions | |
static std::tuple< bool, Block > | reassembleSingle (const NdnlpData &fragment) |
reassemble network layer packet from a single fragment More... | |
Public Attributes | |
scheduler::ScopedEventId | expiry |
represents a partially received message
Definition at line 37 of file ndnlp-partial-message-store.hpp.
nfd::ndnlp::PartialMessage::PartialMessage | ( | ) |
Definition at line 34 of file ndnlp-partial-message-store.cpp.
|
delete |
|
default |
|
delete |
|
default |
bool nfd::ndnlp::PartialMessage::add | ( | uint16_t | fragIndex, |
uint16_t | fragCount, | ||
const Block & | payload | ||
) |
Definition at line 42 of file ndnlp-partial-message-store.cpp.
References ndn::Block::value_size().
Referenced by nfd::ndnlp::PartialMessageStore::receive().
bool nfd::ndnlp::PartialMessage::isComplete | ( | ) | const |
Definition at line 64 of file ndnlp-partial-message-store.cpp.
Referenced by reassemble(), and nfd::ndnlp::PartialMessageStore::receive().
std::tuple< bool, Block > nfd::ndnlp::PartialMessage::reassemble | ( | ) |
reassemble network layer packet
Definition at line 70 of file ndnlp-partial-message-store.cpp.
References ndn::Block::fromBuffer(), and isComplete().
Referenced by nfd::ndnlp::PartialMessageStore::receive().
|
static |
reassemble network layer packet from a single fragment
Definition at line 85 of file ndnlp-partial-message-store.cpp.
References ndn::Block::blockFromValue(), nfd::ndnlp::NdnlpData::fragCount, and nfd::ndnlp::NdnlpData::payload.
Referenced by nfd::ndnlp::PartialMessageStore::receive().
scheduler::ScopedEventId nfd::ndnlp::PartialMessage::expiry |
Definition at line 73 of file ndnlp-partial-message-store.hpp.