From 9ebd6edb9beddf1a6881b2ca924ed43bf5cedfbe Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 30 十二月 2022 11:24:03 +0800 Subject: [PATCH] 1 --- SmartHome/HDL/Operation/Packet.cs | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SmartHome/HDL/Operation/Packet.cs b/SmartHome/HDL/Operation/Packet.cs index 298a6e0..5724c00 100644 --- a/SmartHome/HDL/Operation/Packet.cs +++ b/SmartHome/HDL/Operation/Packet.cs @@ -47,7 +47,7 @@ /// </summary> public int HaveSendCount; - public delegate void DelegateReceive (byte subnetID, byte deviceID, Command command, byte [] usefullBytes, int deviceType); + public delegate void DelegateReceive (byte subnetID, byte deviceID, Command command, byte [] usefullBytes, int deviceType, System.Net.IPEndPoint remoteIp); public static event DelegateReceive ReceiveEvent; /// <summary> /// 鎺ユ敹鍒扮殑鎵�鏈夋暟鎹� @@ -92,7 +92,7 @@ if (ReceiveEvent != null) { try { - ReceiveEvent (subnetID, deviceID, command, usefulBytes, deviceType); + ReceiveEvent (subnetID, deviceID, command, usefulBytes, deviceType,(System.Net.IPEndPoint)RemoteEndPoint); } catch (Exception ex) { Console.WriteLine (ex.Message); } -- Gitblit v1.8.0