udp动态绑定修改
This commit is contained in:
parent
ad864aaadb
commit
63145aec13
@ -64,9 +64,9 @@ export default class UdpClient {
|
|||||||
hilog.info(0x0000, 'udpCLient', 'bind'+ this.localIp+this.localIpPort);
|
hilog.info(0x0000, 'udpCLient', 'bind'+ this.localIp+this.localIpPort);
|
||||||
|
|
||||||
let promise = this.udp.bind({
|
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: '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(() => {
|
promise.then(() => {
|
||||||
console.log(`${TAG}udpCLient udp bind success`);
|
console.log(`${TAG}udpCLient udp bind success`);
|
||||||
@ -87,10 +87,10 @@ export default class UdpClient {
|
|||||||
address: {
|
address: {
|
||||||
// address: '192.168.7.124',
|
// address: '192.168.7.124',
|
||||||
// port: 30013,
|
// port: 30013,
|
||||||
address: '192.168.7.124',
|
// address: '192.168.7.124',
|
||||||
port: 20022,
|
// port: 20022,
|
||||||
// address: this.oppositeIp,
|
address: this.oppositeIp,
|
||||||
// port: parseInt(this.oppositeIpPort),
|
port: parseInt(this.oppositeIpPort),
|
||||||
family: 1
|
family: 1
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user