mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 00:40:55 +08:00
9697f95b8f
This reverts commit 15d999759e
.
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_;
|
|
};
|