mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-16 01:40:52 +08:00
19 lines
294 B
C++
19 lines
294 B
C++
#pragma once
|
|
#include "IConnection.h"
|
|
|
|
class ClientConnection : public IConnection
|
|
{
|
|
public:
|
|
ClientConnection(acl::aio_socket_stream* conn, int ttl);
|
|
~ClientConnection();
|
|
|
|
bool expired() const;
|
|
|
|
protected:
|
|
// 基类纯虚函数
|
|
void run();
|
|
|
|
private:
|
|
long long int expire_;
|
|
};
|