wxr
2020-11-24 33470790ac0069c7734fb1a5b8b07350950c6dfe
HDL_ON/DAL/DriverLayer/UdpSocket.cs
@@ -28,7 +28,7 @@
      /// </summary>
      public void Start ()
        {
            if (IsRunning) {
            if (IsRunning ) {
                return;
            }
@@ -36,6 +36,7 @@
            busSocket.EnableBroadcast = true;
            try {
                busSocket.Bind (new IPEndPoint (IPAddress.Any, 6000));
            busSocket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption(IPAddress.Parse("239.0.168.188")));
         }
         catch{
@@ -97,10 +98,6 @@
                Console.WriteLine($"asyncBeginReceive {e.Message}");
            } 
      }
      /// <summary>
        /// 搜索网络设备触发的回调事件
        /// </summary>
      public Action<string> SearchNetDeviceAction;
      /// <summary>
      /// 异步接收数据结束