IBR-DTNSuite  0.8
BundleStreamBuf Class Reference

#include <BundleStream.h>

List of all members.

Classes

class  Chunk

Public Member Functions

 BundleStreamBuf (dtn::api::Client &client, StreamBundle &chunk, size_t buffer=4096, bool wait_seq_zero=false)
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 std::char_traits< char >
::int_type 
overflow (std::char_traits< char >::int_type=std::char_traits< char >::eof())
virtual std::char_traits< char >
::int_type 
underflow ()
std::char_traits< char >::int_type __underflow ()

Detailed Description

Definition at line 48 of file BundleStream.h.


Constructor & Destructor Documentation

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

Definition at line 77 of file dtnstream.cpp.

References BUFF_SIZE.

Definition at line 86 of file dtnstream.cpp.


Member Function Documentation

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

Definition at line 105 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 137 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 92 of file dtnstream.cpp.

References overflow().

Here is the call graph for this function:

std::char_traits< char >::int_type BundleStreamBuf::underflow ( ) [protected, virtual]

Definition at line 150 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 52 of file BundleStream.h.

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


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