增加TCP数据头

This commit is contained in:
qiminbao
2025-08-25 18:02:41 +08:00
parent 09ac62bca1
commit bddbf10503
22 changed files with 46 additions and 95 deletions
@@ -59,7 +59,7 @@ public class NetScheduler {
String clientId = AgentUtil.getMotherboardUUID();
Message message = Message.builder().clientId(clientId).dataType("NET").data(data).build();
// 将对象转为 JSON 字符串
String json = JSON.toJSONString(message);
String json = "agent-tcp:"+JSON.toJSONString(message)+"@tong-ran";
AssertLog.info("发送网卡信息包={}",json);
nettyTcpClient.sendMessage(json);
}