From f67c9a42cf3a40d6026a3b4a78b5554879cb1085 Mon Sep 17 00:00:00 2001 From: czw <selecti@yeah.net> Date: 星期三, 02 七月 2025 16:01:10 +0800 Subject: [PATCH] 1 --- 2025年6月12日/AuxAllWCS/Build/Project/代码/VS自定义类/TcpServer.cs | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs" index f91b6bd..4ebf30c 100644 --- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs" +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/VS\350\207\252\345\256\232\344\271\211\347\261\273/TcpServer.cs" @@ -162,6 +162,7 @@ public static bool TcpServerSend(string ip, byte[] msg) { + LogHelper.Info($"TcpServerSend >{ip}:{msg}"); if (clients.Keys.Contains(ip)) { var client = clients[ip]; @@ -169,7 +170,8 @@ { try { - client.Send(msg); + client.Send(msg); + LogHelper.Info($"TcpServerSend > 鍙戦�鎴愬姛銆�); return true; } catch (SocketException ex) @@ -222,6 +224,8 @@ // 杞崲鍥炲崄杩涘埗 return Convert.ToInt32(new string(binaryChars), 2); } + public static List<string> GetStaticClients() => clients.Keys.ToList(); + public static Dictionary<string, string> GetStaticScan() => TrayIps; } } -- Gitblit v1.9.1