mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 01:10:52 +08:00
9697f95b8f
This reverts commit 15d999759e
.
22 lines
410 B
C++
22 lines
410 B
C++
#pragma once
|
|
|
|
class connect_pool : public acl::connect_pool
|
|
{
|
|
public:
|
|
connect_pool(const char* addr, size_t count, size_t idx);
|
|
virtual ~connect_pool();
|
|
|
|
void set_timeout(int conn_timeout, int rw_timeout);
|
|
|
|
protected:
|
|
// 基类纯虚函数的实现
|
|
acl::connect_client* create_connect();
|
|
|
|
private:
|
|
acl::string addr_;
|
|
size_t count_;
|
|
size_t idx_;
|
|
int conn_timeout_;
|
|
int rw_timeout_;
|
|
};
|