修改新版协议主机 协议触发的机制,新增 缓存机制

This commit is contained in:
2026-04-09 13:37:09 +08:00
parent c13ab0cb56
commit 36c2fa4061
22 changed files with 484 additions and 1897 deletions

View File

@@ -278,7 +278,7 @@ namespace RCUHost.Implement
}
catch (Exception ex)
{
logger.Error("发送:"+ex.Message);
logger.Error("发送:" + ex.Message);
logger.Error(ex.StackTrace);
}
}
@@ -304,6 +304,10 @@ namespace RCUHost.Implement
HostServer.SendAndPushCommandQueue(data, ipAndPort.ToString().Split(':')[0], Convert.ToInt32(ipAndPort.ToString().Split(':')[1]));
}
}
protected void SendAndPushCommandQueueWithEndPoint(byte[] data, IPEndPoint endpoint)
{
HostServer.SendAndPushCommandQueue(data, endpoint);
}
/// <summary>
/// 回复下位机命令
/// </summary>