43 static IPAddress local (
bool IPv6 =
false)
noexcept;
47 static void findAllAddresses (
Array<IPAddress>& results,
bool includeIPv6 =
false);
58 static IPAddress getLocalAddress (
bool includeIPv6 =
false);
102 int compare (const
IPAddress&) const noexcept;
104 bool operator== (const
IPAddress&) const noexcept;
105 bool operator!= (const
IPAddress&) const noexcept;
106 bool operator< (const
IPAddress&) const noexcept;
107 bool operator> (const
IPAddress&) const noexcept;
108 bool operator<= (const
IPAddress&) const noexcept;
109 bool operator>= (const
IPAddress&) const noexcept;
123 static
String getFormattedAddress (const
String& unformattedAddress);
126 static
bool isIPv4MappedAddress (const
IPAddress& mappedAddress);
Holds a resizable array of primitive or copy-by-value objects.
Represents an IP address.
IPAddress(const uint8 *bytes, bool IPv6=false) noexcept
Creates an IPv4 or IPv6 address by reading 4 or 16 bytes from an array.
unsigned short uint16
A platform-independent 16-bit unsigned integer type.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
unsigned int uint32
A platform-independent 32-bit unsigned integer type.
unsigned char uint8
A platform-independent 8-bit unsigned integer type.