mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-16 01:40:52 +08:00
550b1095de
This reverts commit dff6771da7
.
23 lines
350 B
C++
23 lines
350 B
C++
#pragma once
|
|
|
|
class ServerConnection;
|
|
|
|
/**
|
|
* 服务端连接 IO 处理的回调处理类
|
|
*/
|
|
class ServerIOCallback : public acl::aio_callback
|
|
{
|
|
public:
|
|
ServerIOCallback(ServerConnection* conn);
|
|
|
|
protected:
|
|
bool read_callback(char* data, int len);
|
|
void close_callback();
|
|
bool timeout_callback();
|
|
|
|
private:
|
|
ServerConnection* conn_;
|
|
|
|
~ServerIOCallback();
|
|
};
|