From 63145aec13801fd7430f27dee7345a05c237443b Mon Sep 17 00:00:00 2001 From: lvyuankang <1344032923@qq.com> Date: Thu, 23 May 2024 08:45:29 +0800 Subject: [PATCH] =?UTF-8?q?udp=E5=8A=A8=E6=80=81=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/common/utils/UdpClient.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/entry/src/main/ets/common/utils/UdpClient.ts b/entry/src/main/ets/common/utils/UdpClient.ts index 5bbeb15e..645da158 100644 --- a/entry/src/main/ets/common/utils/UdpClient.ts +++ b/entry/src/main/ets/common/utils/UdpClient.ts @@ -64,9 +64,9 @@ export default class UdpClient { hilog.info(0x0000, 'udpCLient', 'bind'+ this.localIp+this.localIpPort); let promise = this.udp.bind({ - address: '192.168.7.170', port: 20122, family: 1 + // address: '192.168.7.170', port: 20122, family: 1 // address: '192.168.7.170', port: 31013, family: 1 - // address: this.localIp, port: parseInt(this.localIpPort), family: 1 + address: this.localIp, port: parseInt(this.localIpPort), family: 1 }); promise.then(() => { console.log(`${TAG}udpCLient udp bind success`); @@ -87,10 +87,10 @@ export default class UdpClient { address: { // address: '192.168.7.124', // port: 30013, - address: '192.168.7.124', - port: 20022, - // address: this.oppositeIp, - // port: parseInt(this.oppositeIpPort), + // address: '192.168.7.124', + // port: 20022, + address: this.oppositeIp, + port: parseInt(this.oppositeIpPort), family: 1 } });