IBR-DTNSuite  0.8
StreamBundle Class Reference

#include <BundleStream.h>

Inheritance diagram for StreamBundle:
Collaboration diagram for StreamBundle:

List of all members.

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)

Detailed Description

Definition at line 18 of file BundleStream.h.


Constructor & Destructor Documentation

Definition at line 33 of file dtnstream.cpp.

Definition at line 38 of file dtnstream.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

size_t StreamBundle::size ( )

returns the size of the current payload

Returns:

Definition at line 61 of file dtnstream.cpp.

References ibrcommon::BLOB::Reference::iostream(), and ibrcommon::BLOB::iostream::size().

Referenced by BundleStreamBuf::overflow().

Here is the call graph for this function:


The documentation for this class was generated from the following files: