IBR-DTNSuite
0.8
|
#include <BundleStream.h>
Public Member Functions | |
StreamBundle () | |
StreamBundle (const dtn::api::Bundle &b) | |
virtual | ~StreamBundle () |
void | append (const char *data, size_t length) |
void | clear () |
size_t | size () |
Static Public Member Functions | |
static size_t | getSequenceNumber (const StreamBundle &b) |
Definition at line 18 of file BundleStream.h.
Definition at line 24 of file dtnstream.cpp.
References dtn::api::Bundle::_b, dtn::data::Bundle::push_back(), dtn::data::Bundle::push_front(), and dtn::data::StreamBlock::setSequenceNumber().
StreamBundle::StreamBundle | ( | const dtn::api::Bundle & | b | ) |
Definition at line 33 of file dtnstream.cpp.
StreamBundle::~StreamBundle | ( | ) | [virtual] |
Definition at line 38 of file dtnstream.cpp.
void StreamBundle::append | ( | const char * | data, |
size_t | length | ||
) |
Append data to the payload.
Definition at line 42 of file dtnstream.cpp.
References ibrcommon::BLOB::Reference::iostream().
Referenced by BundleStreamBuf::overflow().
void StreamBundle::clear | ( | ) |
deletes the hole payload of the bundle
Definition at line 49 of file dtnstream.cpp.
References dtn::api::Bundle::_b, ibrcommon::BLOB::iostream::clear(), dtn::data::Bundle::getBlock(), dtn::data::StreamBlock::getSequenceNumber(), ibrcommon::BLOB::Reference::iostream(), and dtn::data::StreamBlock::setSequenceNumber().
size_t StreamBundle::getSequenceNumber | ( | const StreamBundle & | b | ) | [static] |
Definition at line 67 of file dtnstream.cpp.
References dtn::api::Bundle::_b, dtn::data::Bundle::getBlock(), and dtn::data::StreamBlock::getSequenceNumber().
Referenced by BundleStreamBuf::received().
size_t StreamBundle::size | ( | ) |
returns the size of the current payload
Definition at line 61 of file dtnstream.cpp.
References ibrcommon::BLOB::Reference::iostream(), and ibrcommon::BLOB::iostream::size().
Referenced by BundleStreamBuf::overflow().