Collage
1.5.0
High-performance C++ library for developing object-oriented distributed applications.
|
A receive buffer for a Connection. More...
#include <buffer.h>
Public Member Functions | |
CO_API | Buffer (BufferListener *listener=0) |
Construct a new buffer. More... | |
virtual CO_API | ~Buffer () |
Destruct this buffer. More... | |
CO_API bool | isFree () const |
void | setUsed () |
A receive buffer for a Connection.
The buffer does not auto-delete, that is, a BufferPtr is not a smart pointer. Instead, the BufferListener interface notifies when a buffer is reusable. The BufferCache uses this to recycle unreferenced buffers, i.e., unused by any ICommand.
|
explicit |
Construct a new buffer.
|
virtual |
Destruct this buffer.
CO_API bool co::Buffer::isFree | ( | ) | const |