From 9a0b765c583bd69929de3a7495138b3e878e4543 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 05 九月 2023 16:14:27 +0800 Subject: [PATCH] 0-10v更新,网关在线状态更新 --- HDL_ON/DAL/DriverLayer/UdpSocket.cs | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/HDL_ON/DAL/DriverLayer/UdpSocket.cs b/HDL_ON/DAL/DriverLayer/UdpSocket.cs index 4bb4c7f..df9662a 100644 --- a/HDL_ON/DAL/DriverLayer/UdpSocket.cs +++ b/HDL_ON/DAL/DriverLayer/UdpSocket.cs @@ -27,22 +27,17 @@ /// </summary> public void Start (int port = 0) { - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳�0"); if (IsRunning) { - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳絰"); if (port == Port) { - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳絪"); return; } else { - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳絘"); busSocket.Close(); } } - MainPage.Log("鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳�1"); if (port != 0) Port = port; if (Port == 0) @@ -125,9 +120,9 @@ Console.WriteLine("asyncBeginReceive " + relinkCount ); if (relinkCount == 0) { + relinkCount = 1; asyncBeginReceive(); } - relinkCount = 1; Console.WriteLine($"asyncBeginReceive {e.Message}"); } } -- Gitblit v1.8.0