IO Filter class (interface) More...
#include <IoFilter.h>
Public Member Functions | |
virtual bool | Extract (SessionPtr session, IoBufferPtr data, std::vector< IoBufferPtr > &readylist)=0 |
virtual IoBufferPtr | Encode (SessionPtr session, void *data)=0 |
virtual void * | Decode (SessionPtr session, IoBufferPtr data)=0 |
IO Filter class (interface)
|
pure virtual |
Decode the IO buffer
session | Current session |
data | The pointer of the IO buffer encoded |
Implemented in esnlib::MessageCodec, and esnlib::StringCodec.
|
pure virtual |
Encode the raw buffer
session | Current session |
data | The pointer of the raw buffer |
Implemented in esnlib::MessageCodec, and esnlib::StringCodec.
|
pure virtual |
Extract useful data from the incoming bytes
session | Current session |
data | The pointer of the incoming bytes |
readylist | The list used to save the useful data extracted |
Implemented in esnlib::MessageCodec, and esnlib::StringCodec.