Beispiel #1
0
        /// <summary>
        /// 服务器断开连接
        /// </summary>
        public void Disconnect()
        {
            isConnect = false;
            tcpSocket.Disconnect();
            udpSocket.Stop();

            tcpReciver.Reset();
            udpReciver.Reset();
        }
Beispiel #2
0
        /// <summary>
        /// 服务器断开连接
        /// </summary>
        public void Disconnect()
        {
            isConnect = false;
            Debug.Log("断开TCP");
            tcpSocket.Disconnect();
            Debug.Log("断开UDP");
            udpSocket.Stop();

            tcpReciver.Reset();
            udpReciver.Reset();
        }