Adbase
Adinf C++ base library V2
|
#include <Handler.hpp>
Public Member Functions | |
Handler (Interface *interface) | |
~Handler () | |
void | onConnection (const TcpConnectionPtr &conn) |
void | onMessage (const TcpConnectionPtr &conn, evbuffer *evbuf, Timestamp reciveTime) |
void | onClose (const TcpConnectionPtr &conn) |
Definition at line 23 of file Handler.hpp.
adbase::head::Handler::Handler | ( | Interface * | interface | ) |
Definition at line 8 of file Handler.cpp.
adbase::head::Handler::~Handler | ( | ) |
Definition at line 15 of file Handler.cpp.
void adbase::head::Handler::onClose | ( | const TcpConnectionPtr & | conn | ) |
Definition at line 46 of file Handler.cpp.
References LOG_TRACE.
void adbase::head::Handler::onConnection | ( | const TcpConnectionPtr & | conn | ) |
Definition at line 21 of file Handler.cpp.
References LOG_TRACE.
void adbase::head::Handler::onMessage | ( | const TcpConnectionPtr & | conn, |
evbuffer * | evbuf, | ||
Timestamp | reciveTime | ||
) |
Definition at line 29 of file Handler.cpp.
References LOG_DEBUG, adbase::head::Binary::processData(), adbase::head::PROTOCOL_BINARY_REQ, and adbase::Timestamp::toString().