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

Public Member Functions | |
| iobuffer (const size_t buffer=2048) | |
| virtual | ~iobuffer () |
| void | finalize () |
Protected Member Functions | |
| virtual int | sync () |
| virtual int | overflow (int=std::char_traits< char >::eof()) |
| virtual int | underflow () |
This class provided a way to exchange buffered data between two threads where one thread is writing to the buffer and the other is reading from.
Definition at line 21 of file iobuffer.h.
| ibrcommon::iobuffer::iobuffer | ( | const size_t | buffer = 2048 | ) |
Definition at line 14 of file iobuffer.cpp.
| ibrcommon::iobuffer::~iobuffer | ( | ) | [virtual] |
Definition at line 22 of file iobuffer.cpp.
| void ibrcommon::iobuffer::finalize | ( | ) |
finalize the stream an set the EOF flag
Definition at line 29 of file iobuffer.cpp.
References ibrcommon::Conditional::signal().
Referenced by dtn::net::HTTPConvergenceLayer::componentDown(), and dtn::net::HTTPConvergenceLayer::componentRun().

| int ibrcommon::iobuffer::overflow | ( | int | c = std::char_traits<char>::eof() | ) | [protected, virtual] |
Definition at line 45 of file iobuffer.cpp.
References ibrcommon::Conditional::signal(), and ibrcommon::Conditional::wait().
Referenced by sync().

| int ibrcommon::iobuffer::sync | ( | ) | [protected, virtual] |
Definition at line 36 of file iobuffer.cpp.
References overflow().

| int ibrcommon::iobuffer::underflow | ( | ) | [protected, virtual] |
Definition at line 85 of file iobuffer.cpp.
References ibrcommon::Conditional::signal(), and ibrcommon::Conditional::wait().
