public void Init(int id) { m_id = id; m_port = IPCConfig.GetIPCInfo(id).port; m_rpc = new RPCManagerBase(); m_rpc.Init(); }
public void Clean() { Stop(); if (m_rpc != null) { m_rpc.Clean(); m_rpc = null; } }
public void Init(Type connType, int connId, int bindPort) { Debuger.Log("connType:{0}, connId:{1}, bindPort:{2}", connType, connId, bindPort); m_conn = Activator.CreateInstance(connType) as IConnection; m_conn.Init(connId, bindPort); m_rpc = new RPCManagerBase(); m_rpc.Init(); }
public void Init(int port) { Debuger.Log("port:{0}", port); m_gateway = new Gateway(); m_gateway.Init(port, this); m_rpc = new RPCManagerBase(); m_rpc.Init(); }
public void Clean() { Debuger.Log(); if (m_gateway != null) { m_gateway.Clean(); m_gateway = null; } if (m_rpc != null) { m_rpc.Clean(); m_rpc = null; } m_listMsgListener.Clear(); }
public void Clean() { Debuger.Log(); if (m_conn != null) { m_conn.Clean(); m_conn = null; } if (m_rpc != null) { m_rpc.Clean(); m_rpc = null; } m_listNtfListener.Clear(); m_listRspListener.Clear(); }