public override void Shutdown()
        {
            m_IsConnectToMainSocket = false;
            m_SocketManager.Dispose();
            GameEntry.Pool.EnqueueClassObject(m_MainSocket);
            SocketProtoListener.RemoveProtoListener();

            SocketSendMS.Dispose();
            SocketSendMS.Close();
            SocketReceiveMS.Close();
            SocketReceiveMS.Dispose();
        }
Beispiel #2
0
        public override void Shutdown()
        {
            base.Shutdown();

            m_IsConnectToMainSocket = false;

            m_SocketManager.Dispose();
            SocketProtoListener.RemoveProtoListener();

            SocketReceiveMS.Dispose();
            SocketSendMS.Dispose();

            SocketReceiveMS.Close();
            SocketSendMS.Close();

            SocketReceiveMS = null;
            SocketSendMS    = null;
        }