|
IBR-DTNSuite 0.6
|
#include <BundleStream.h>

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 () |
Definition at line 79 of file BundleStream.h.
| BundleStreamBuf::BundleStreamBuf | ( | dtn::api::Client & | client, |
| StreamBundle & | chunk, | ||
| size_t | buffer = 4096 |
||
| ) |
Definition at line 118 of file dtnstream.cpp.
References BUFF_SIZE.
| BundleStreamBuf::~BundleStreamBuf | ( | ) | [virtual] |
Definition at line 127 of file dtnstream.cpp.
| int BundleStreamBuf::__underflow | ( | ) | [protected] |
Definition at line 198 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().

| int BundleStreamBuf::overflow | ( | int | c = std::char_traits<char>::eof() | ) | [protected, virtual] |
Definition at line 146 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 178 of file dtnstream.cpp.
References StreamBundle::getSequenceNumber(), and ibrcommon::Conditional::signal().
Referenced by BundleStream::received().

| int BundleStreamBuf::sync | ( | ) | [protected, virtual] |
Definition at line 133 of file dtnstream.cpp.
References overflow().

| int BundleStreamBuf::underflow | ( | ) | [protected, virtual] |
Definition at line 191 of file dtnstream.cpp.
References __underflow().

const size_t BundleStreamBuf::BUFF_SIZE = 5120 [static] |
Definition at line 83 of file BundleStream.h.
Referenced by __underflow(), BundleStreamBuf(), and overflow().