From 31da051cc6648c750ddeac9878369a84367d6f9a Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 26 十一月 2020 09:29:54 +0800
Subject: [PATCH] 20201126;网关搜索

---
 HDL_ON/DAL/DriverLayer/UdpSocket.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/UdpSocket.cs b/HDL_ON/DAL/DriverLayer/UdpSocket.cs
index 4258c9b..39b3dfd 100644
--- a/HDL_ON/DAL/DriverLayer/UdpSocket.cs
+++ b/HDL_ON/DAL/DriverLayer/UdpSocket.cs
@@ -25,7 +25,7 @@
 		/// <summary>
 		/// 鍚姩Socket鎺ユ敹鍜屽彂閫佸姛鑳�
 		/// </summary>
-		public void Start ()
+		public void Start (int port)
         {
             if (IsRunning ) {
                 return;
@@ -45,7 +45,7 @@
 
             asyncBeginReceive();
 
-            MainPage.Log ($"udp port : 6000");
+            MainPage.Log ($"udp port : {port}");
         }
 
 		/// <summary>
@@ -119,10 +119,11 @@
 				packet.Bytes = new byte[len];
 				Array.Copy(bytes, 0, packet.Bytes, 0, packet.Bytes.Length);
 
+				MainPage.Log($"鎺ユ敹IP{packet.RemoteEndPoint}鏁版嵁");
 				//mqtt杩炴帴鏁版嵁璇诲彇  A鍗忚缃戠粶璁惧淇℃伅璇诲彇鍥炲 澶勭悊
 				if (((IPEndPoint)packet.RemoteEndPoint).Port == 8585)
 				{
-					DriverLayer.A_Protocal_Common.apc.ConvertReceiveData(bytes);
+					Control.Ins.ConvertReceiveData(bytes);
 				}
 				else if(((IPEndPoint)packet.RemoteEndPoint).Port == 6000)//澶勭悊bus 6000绔彛鐨勬暟鎹�
 				{

--
Gitblit v1.8.0