From 37d147741c3d6b435d0d9efcab0f11212d6604b6 Mon Sep 17 00:00:00 2001 From: wangbo Date: Fri, 10 Oct 2025 02:22:18 +0000 Subject: [PATCH] =?UTF-8?q?FIX=201.=E5=8E=BB=E6=8E=89=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E5=AE=9E=E6=97=B6=E6=B3=A2=E5=BD=A2=E7=9A=84=E6=89=93=E5=8D=B0?= =?UTF-8?q?;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/a_process/pd_csg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/lib/a_process/pd_csg.c b/app/lib/a_process/pd_csg.c index adecc96..0860222 100755 --- a/app/lib/a_process/pd_csg.c +++ b/app/lib/a_process/pd_csg.c @@ -635,13 +635,13 @@ int32_t _csg_trend_send(pd_trend_port_t *ptrend) sk_server = csg.wave_svr; } - char ip_str[INET_ADDRSTRLEN]; - inet_ntop(AF_INET, &(sk_server.sin_addr), ip_str, sizeof(ip_str)); - printf("IP Address: %s\n", ip_str); + //char ip_str[INET_ADDRSTRLEN]; + //inet_ntop(AF_INET, &(sk_server.sin_addr), ip_str, sizeof(ip_str)); + //printf("IP Address: %s\n", ip_str); // 获取端口号,使用ntohs()函数转换回主机字节序 - unsigned short port = ntohs(sk_server.sin_port); - printf("Port: %d\n", port); + //unsigned short port = ntohs(sk_server.sin_port); + //printf("Port: %d\n", port); _csg_send(fd, pkt, pkt_head->len, sk_server); }