Collage
1.0.1
Object-Oriented C++ Network Library
|
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... | |
bool | isFree () const |
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.
CO_API co::Buffer::Buffer | ( | BufferListener * | listener = 0 | ) |
Construct a new buffer.
|
virtual |
Destruct this buffer.
|
inline |