|
IBR-DTNSuite 0.6
|
#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 49 of file BundleStream.h.
| StreamBundle::StreamBundle | ( | ) |
Definition at line 65 of file dtnstream.cpp.
References dtn::api::Bundle::_b, dtn::data::Bundle::push_back(), dtn::data::Bundle::push_front(), and StreamBlock::setSequenceNumber().

| StreamBundle::StreamBundle | ( | const dtn::api::Bundle & | b | ) |
Definition at line 74 of file dtnstream.cpp.
| StreamBundle::~StreamBundle | ( | ) | [virtual] |
Definition at line 79 of file dtnstream.cpp.
| void StreamBundle::append | ( | const char * | data, |
| size_t | length | ||
| ) |
Append data to the payload.
Definition at line 83 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 90 of file dtnstream.cpp.
References dtn::api::Bundle::_b, ibrcommon::BLOB::iostream::clear(), dtn::data::Bundle::getBlock(), StreamBlock::getSequenceNumber(), ibrcommon::BLOB::Reference::iostream(), and StreamBlock::setSequenceNumber().

| size_t StreamBundle::getSequenceNumber | ( | const StreamBundle & | b | ) | [static] |
Definition at line 108 of file dtnstream.cpp.
References dtn::api::Bundle::_b, dtn::data::Bundle::getBlock(), and StreamBlock::getSequenceNumber().
Referenced by BundleStreamBuf::received().

| size_t StreamBundle::size | ( | ) |
returns the size of the current payload
Definition at line 102 of file dtnstream.cpp.
References ibrcommon::BLOB::Reference::iostream(), and ibrcommon::BLOB::iostream::size().
Referenced by BundleStreamBuf::overflow().
