Easy Simple Network Library  0.3.7
Public Member Functions | List of all members
esnlib::BufferManager Class Referenceabstract

Buffer Manager, it will work like a memory pool. More...

#include <BufferManager.h>

Inheritance diagram for esnlib::BufferManager:

Public Member Functions

virtual BufferPtr GetFreeBuffer ()=0
virtual void TakeBack (BufferPtr buf)=0

Detailed Description

Buffer Manager, it will work like a memory pool.

Member Function Documentation

virtual BufferPtr esnlib::BufferManager::GetFreeBuffer ( )
pure virtual

Get a free buffer from the pool

The pointer of the free buffer

Implemented in esnlib::IoBufferManager.

virtual void esnlib::BufferManager::TakeBack ( BufferPtr  buf)
pure virtual

Take the buffer back to the pool

bufThe buffer

Implemented in esnlib::IoBufferManager.

The documentation for this class was generated from the following file: