wxr
2023-07-30 d76b0e40e5bb127fd33aa1f7842447a1df0628d5
HDL_ON/DAL/DriverLayer/UdpSocket.cs
@@ -50,8 +50,10 @@
            busSocket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption(IPAddress.Parse("239.0.168.188")));
         }
         catch{
                busSocket = null;
         catch (Exception ex){
            MainPage.Log ($"udp port bind error : {ex.Message}");
            busSocket = null;
                return;
            }
@@ -75,7 +77,7 @@
         }
         catch { }
         busSocket = null;
            MainPage.Log("Socket关闭");
         MainPage.Log("Socket关闭");
      }
      /// <summary>
@@ -120,9 +122,12 @@
         {
            return;
         }
         try
         {
            if (busSocket == null)
            {
               return;
            }
            asyncBeginReceive();
            Packet packet = (Packet)iar.AsyncState;
            int len = busSocket.EndReceiveFrom(iar, ref packet.RemoteEndPoint);
@@ -137,10 +142,11 @@
            {
               Control.Ins.ConvertReceiveData(bytes, ((IPEndPoint)packet.RemoteEndPoint).Address.ToString());
            }
            else if(((IPEndPoint)packet.RemoteEndPoint).Port == 6000)//处理bus 6000端口的数据
            else if (((IPEndPoint)packet.RemoteEndPoint).Port == 6000)//处理bus 6000端口的数据
            {
               packet.Manager();
            }
         }
         catch (Exception ex)
         {