Exemplo n.º 1
0
        private void Update()
        {
            ISocketClient socketClient = null;
            int           nCount       = m_SocketList.Count;

            for (int i = 0; i < nCount; ++i)
            {
                socketClient = m_SocketList[i];
                if (socketClient.CanClose())
                {
                    socketClient.Close();
                    m_SocketList.RemoveAt(i);
                    break;
                }
            }

            //推动socket client 更新
            if (null != m_CurrentSocketClient)
            {
                m_CurrentSocketClient.Update();
            }

            //处理解包
            ProccessMessage();
        }