Classes | Public Member Functions | Static Public Attributes | Protected Member Functions

BundleStreamBuf Class Reference

#include <BundleStream.h>

Collaboration diagram for BundleStreamBuf:
Collaboration graph
[legend]

List of all members.

Classes

class  Chunk

Public Member Functions

 BundleStreamBuf (dtn::api::Client &client, StreamBundle &chunk, size_t buffer=4096)
virtual ~BundleStreamBuf ()
virtual void received (const dtn::api::Bundle &b)

Static Public Attributes

static const size_t BUFF_SIZE = 5120

Protected Member Functions

virtual int sync ()
virtual int overflow (int=std::char_traits< char >::eof())
virtual int underflow ()
int __underflow ()

Detailed Description

Definition at line 79 of file BundleStream.h.


Constructor & Destructor Documentation

BundleStreamBuf::BundleStreamBuf ( dtn::api::Client client,
StreamBundle chunk,
size_t  buffer = 4096 
)

Definition at line 115 of file dtnstream.cpp.

References BUFF_SIZE.

BundleStreamBuf::~BundleStreamBuf (  )  [virtual]

Definition at line 124 of file dtnstream.cpp.


Member Function Documentation

int BundleStreamBuf::__underflow (  )  [protected]

Definition at line 195 of file dtnstream.cpp.

References BUFF_SIZE, dtn::api::Bundle::getData(), ibrcommon::BLOB::Reference::iostream(), and ibrcommon::Conditional::wait().

Referenced by underflow().

Here is the call graph for this function:

int BundleStreamBuf::overflow ( int  c = std::char_traits<char>::eof()  )  [protected, virtual]

Definition at line 143 of file dtnstream.cpp.

References StreamBundle::append(), BUFF_SIZE, and StreamBundle::size().

Referenced by sync().

Here is the call graph for this function:

void BundleStreamBuf::received ( const dtn::api::Bundle b  )  [virtual]

Definition at line 175 of file dtnstream.cpp.

References StreamBundle::getSequenceNumber(), and ibrcommon::Conditional::signal().

Referenced by BundleStream::received().

Here is the call graph for this function:

int BundleStreamBuf::sync (  )  [protected, virtual]

Definition at line 130 of file dtnstream.cpp.

References overflow().

Here is the call graph for this function:

int BundleStreamBuf::underflow (  )  [protected, virtual]

Definition at line 188 of file dtnstream.cpp.

References __underflow().

Here is the call graph for this function:


Member Data Documentation

const size_t BundleStreamBuf::BUFF_SIZE = 5120 [static]

Definition at line 83 of file BundleStream.h.

Referenced by __underflow(), BundleStreamBuf(), and overflow().


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