wsproxy/server/wsproxy/target_conn_mgr.h
2018-08-07 13:29:49 +08:00

20 lines
339 B
C++

#pragma once
class TargetConn;
class TargetConnMgr : public a8::Singleton<TargetConnMgr>
{
private:
TargetConnMgr() {};
friend class a8::Singleton<TargetConnMgr>;
public:
void Init();
void UnInit();
TargetConn* GetConnByInstanceId(int instance_id);
private:
std::map<int, TargetConn*> target_conn_hash_;
};