mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 09:20:52 +08:00
25 lines
376 B
C++
25 lines
376 B
C++
#pragma once
|
|
|
|
class connect_client : public acl::connect_client
|
|
{
|
|
public:
|
|
connect_client(const char* addr, int conn_timeout, int rw_timeout);
|
|
|
|
virtual ~connect_client();
|
|
|
|
const char* get_addr() const
|
|
{
|
|
return addr_;
|
|
}
|
|
|
|
void reset() {}
|
|
|
|
protected:
|
|
virtual bool open();
|
|
|
|
private:
|
|
const char* addr_;
|
|
int conn_timeout_;
|
|
int rw_timeout_;
|
|
};
|