provides reassembly feature at receiver More...
#include <ndnlp-partial-message-store.hpp>
Public Member Functions | |
PartialMessageStore (const time::nanoseconds &idleDuration=time::milliseconds(100)) | |
void | receive (const NdnlpData &pkt) |
receive a NdnlpData packet More... | |
Public Attributes | |
signal::Signal< PartialMessageStore, Block > | onReceive |
fires when network layer packet is received More... | |
provides reassembly feature at receiver
Definition at line 84 of file ndnlp-partial-message-store.hpp.
|
explicit |
Definition at line 97 of file ndnlp-partial-message-store.cpp.
void nfd::ndnlp::PartialMessageStore::receive | ( | const NdnlpData & | pkt | ) |
receive a NdnlpData packet
Reassembly errors will be ignored.
Definition at line 103 of file ndnlp-partial-message-store.cpp.
References nfd::ndnlp::PartialMessage::add(), nfd::ndnlp::PartialMessage::expiry, nfd::ndnlp::NdnlpData::fragCount, nfd::ndnlp::NdnlpData::fragIndex, nfd::ndnlp::PartialMessage::isComplete(), NFD_LOG_TRACE, onReceive, nfd::ndnlp::NdnlpData::payload, nfd::ndnlp::PartialMessage::reassemble(), nfd::ndnlp::PartialMessage::reassembleSingle(), nfd::scheduler::schedule(), and nfd::ndnlp::NdnlpData::seq.
signal::Signal<PartialMessageStore, Block> nfd::ndnlp::PartialMessageStore::onReceive |
fires when network layer packet is received
Definition at line 99 of file ndnlp-partial-message-store.hpp.
Referenced by receive().