Easy Simple Network Library  0.3.7
All Classes Functions Modules
Functions
MemoryPool

Functions

IoBufferManagerPtr esnlib::CreateIoBufferManager (int itemcount=128, int bufsize=8192)
 

Detailed Description

Function Documentation

IoBufferManagerPtr esnlib::CreateIoBufferManager ( int  itemcount = 128,
int  bufsize = 8192 
)

Create a buffer pool with initial number of the buffers and the default size of every buffer

Parameters
itemcountThe initial number of the buffers
bufsizeThe default size of every buffer
Returns
The pointer of the buffer pool