コード例 #1
0
 public void EndClientUdp()
 {
     try {
         isRun = false;
         if (sendEndPort != null)
         {
             UdpManager.Instance.CloseUdpClient();
             sendClient  = null;
             sendEndPort = null;
         }
         delegate_analyze_message = null;
     } catch (Exception ex) {
         LogManage.Instance.AddLog("udp连接关闭异常:" + ex.Message);
     }
 }
コード例 #2
0
ファイル: MarsUdp.cs プロジェクト: mengtest/FrameSync
    public void EndClientUdp()
    {
        try {
            isRun  = false;
            isRecv = false;
//			if (sendEndPort != null) {
//				UdpManager.Instance.CloseUdpClient();
//				sendClient = null;
//				sendEndPort = null;
//			}
            UdpManager.Instance.CloseUdpClient();
            sendClient = null;
            delegate_analyze_message = null;
        } catch (Exception ex) {
            Debug.Log("udp连接关闭异常:" + ex.Message);
        }
    }