acl/lib_acl_cpp/samples/connect_manager/connect_client.h

25 lines
376 B
C
Raw Normal View History

2014-11-19 00:25:21 +08:00
#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_;
};