1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

fix host emulation (#5382)

This commit is contained in:
david gauchard
2018-11-28 12:37:59 +01:00
committed by GitHub
parent 5fcb8f1dac
commit dc5e352676
4 changed files with 10 additions and 8 deletions

View File

@ -55,16 +55,16 @@ public:
}
}
bool connect (ip_addr_t addr, uint16_t port)
bool connect (const ip_addr_t* addr, uint16_t port)
{
_dst = addr;
_dst = *addr;
_dstport = port;
return true;
}
bool listen(ip_addr_t addr, uint16_t port)
bool listen(const ip_addr_t* addr, uint16_t port)
{
bool ret = mockUDPListen(_sock, addr.addr, port, staticMCastAddr);
bool ret = mockUDPListen(_sock, addr->addr, port, staticMCastAddr);
register_udp(_sock, this);
return ret;
}