mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 17:30:53 +08:00
20 lines
346 B
C
20 lines
346 B
C
|
#pragma once
|
||
|
|
||
|
class http_rpc;
|
||
|
|
||
|
class http_client : public acl::aio_callback
|
||
|
{
|
||
|
public:
|
||
|
http_client(acl::aio_socket_stream* conn);
|
||
|
~http_client();
|
||
|
|
||
|
private:
|
||
|
virtual bool read_wakeup();
|
||
|
virtual bool write_callback();
|
||
|
virtual bool timeout_callback();
|
||
|
virtual void close_callback();
|
||
|
private:
|
||
|
acl::aio_socket_stream* conn_;
|
||
|
http_rpc* http_;
|
||
|
};
|