1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

hostByName timeout fixes (#8787)

* single impl
This commit is contained in:
Max Prokhorov
2023-01-05 16:29:14 +03:00
committed by GitHub
parent 3e357f32b1
commit f06710eb6e
5 changed files with 126 additions and 104 deletions

View File

@ -27,6 +27,11 @@ IPAddress::IPAddress(const IPAddress& from)
ip_addr_copy(_ip, from._ip);
}
IPAddress::IPAddress(IPAddress&& from)
{
ip_addr_copy(_ip, from._ip);
}
IPAddress::IPAddress() {
_ip = *IP_ANY_TYPE; // lwIP's v4-or-v6 generic address
}

View File

@ -66,7 +66,9 @@ class IPAddress: public Printable {
public:
// Constructors
IPAddress();
IPAddress(const IPAddress& from);
IPAddress(const IPAddress&);
IPAddress(IPAddress&&);
IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet);
IPAddress(uint32_t address) { ctor32(address); }
IPAddress(unsigned long address) { ctor32(address); }