acl/lib_acl_cpp/samples/master_http_aio/http_client.h
zsxxsz cc05b877a2 first commit acl to github
first commit acl to github
2013-08-18 17:42:25 +08:00

22 lines
412 B
C++

#pragma once
class http_rpc;
class http_client : public acl::aio_callback
{
public:
http_client(acl::aio_socket_stream* conn, int buf_size);
~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_;
ACL_ASTREAM* stream_;
acl::string res_hdr_;
acl::string res_body_;
};