GameCore.NetWork.CNetTCPSocketConnect.__Clear C# (CSharp) Method

__Clear() private method

变量初始化
private __Clear ( ) : void
return void
        private void __Clear()
        {
            m_Socket = null;
            m_IPAddrMsg.Clear();

            m_ReceiveHead = null;

            __DestoryNetWorkThread();

            if (null != m_SendPackList)
            {
                m_SendPackList.Clear();
            }
            m_SendObject = null;

            if (null != m_ReceivePackList)
            {
                m_ReceivePackList.Clear();
            }
            m_ReceiveObject = null;

            if (null != m_ManualSendEvent)
            {
                m_ManualSendEvent.Close();
                m_ManualSendEvent = null;
            }

            if (null != m_AutoConnectEvent)
            {
                m_AutoConnectEvent.Close();
                m_AutoConnectEvent = null;
            }

            m_NetStateListener = null;

            m_unSendTotalBytes = 0;
            m_unRecvTotalBytes = 0;
        }