IBR-DTNSuite
0.8
|
#include <BundleStream.h>
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 () |
Definition at line 48 of file BundleStream.h.
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.
BundleStreamBuf::~BundleStreamBuf | ( | ) | [virtual] |
Definition at line 86 of file dtnstream.cpp.
std::char_traits< char >::int_type BundleStreamBuf::__underflow | ( | ) | [protected] |
Definition at line 157 of file dtnstream.cpp.
References __timeout_receive__, BUFF_SIZE, dtn::api::Bundle::getData(), ibrcommon::TimeMeasurement::getSeconds(), ibrcommon::BLOB::Reference::iostream(), ibrcommon::TimeMeasurement::start(), ibrcommon::TimeMeasurement::stop(), and ibrcommon::Conditional::wait().
Referenced by underflow().
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().
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().
int BundleStreamBuf::sync | ( | ) | [protected, virtual] |
Definition at line 92 of file dtnstream.cpp.
References overflow().
std::char_traits< char >::int_type BundleStreamBuf::underflow | ( | ) | [protected, virtual] |
Definition at line 150 of file dtnstream.cpp.
References __underflow().
const size_t BundleStreamBuf::BUFF_SIZE = 5120 [static] |
Definition at line 52 of file BundleStream.h.
Referenced by __underflow(), BundleStreamBuf(), and overflow().