예제 #1
0
        public void Init(int id)
        {
            m_id   = id;
            m_port = IPCConfig.GetIPCInfo(id).port;

            m_rpc = new RPCManagerBase();
            m_rpc.Init();
        }
예제 #2
0
        public void Clean()
        {
            Stop();

            if (m_rpc != null)
            {
                m_rpc.Clean();
                m_rpc = null;
            }
        }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }
예제 #5
0
        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();
        }
예제 #6
0
        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();
        }