|
| IPAddress () noexcept |
| Creates a null address - 0.0.0.0 (IPv4) or ::, (IPv6)
|
|
| IPAddress (const uint8 *bytes, bool IPv6=false) noexcept |
| Creates an IPv4 or IPv6 address by reading 4 or 16 bytes from an array.
|
|
| IPAddress (const uint16 *bytes) noexcept |
| Creates an IPv6 address from an array of 8 16-bit integers.
|
|
| IPAddress (uint8 address1, uint8 address2, uint8 address3, uint8 address4) noexcept |
| Creates an IPv4 address from 4 bytes.
|
|
| IPAddress (uint16 address1, uint16 address2, uint16 address3, uint16 address4, uint16 address5, uint16 address6, uint16 address7, uint16 address8) noexcept |
| Creates an IPv6 address from 8 16-bit integers.
|
|
| IPAddress (uint32 asNativeEndian32Bit) noexcept |
| Creates an IPv4 address from a packed 32-bit integer, where the MSB is the first number in the address, and the LSB is the last.
|
|
| IPAddress (const String &address) |
| Parses a string IP address of the form "1.2.3.4" (IPv4) or "1:2:3:4:5:6:7:8" (IPv6).
|
|
bool | isNull () const |
| Returns whether the address contains the null address (e.g.
|
|
String | toString () const |
| Returns a dot- or colon-separated string in the form "1.2.3.4" (IPv4) or "1:2:3:4:5:6:7:8" (IPv6).
|
|
int | compare (const IPAddress &) const noexcept |
| Compares this IPAddress with another.
|
|
bool | operator== (const IPAddress &) const noexcept |
|
bool | operator!= (const IPAddress &) const noexcept |
|
bool | operator< (const IPAddress &) const noexcept |
|
bool | operator> (const IPAddress &) const noexcept |
|
bool | operator<= (const IPAddress &) const noexcept |
|
bool | operator>= (const IPAddress &) const noexcept |
|
|
static IPAddress | any () noexcept |
| Returns an IP address meaning "any", equivalent to 0.0.0.0 (IPv4) or ::, (IPv6)
|
|
static IPAddress | broadcast () noexcept |
| Returns an IPv4 address meaning "broadcast" (255.255.255.255)
|
|
static IPAddress | local (bool IPv6=false) noexcept |
| Returns an IPv4 or IPv6 address meaning "localhost", equivalent to 127.0.0.1 (IPv4) or ::1 (IPv6)
|
|
static void | findAllAddresses (Array< IPAddress > &results, bool includeIPv6=false) |
| Populates a list of all the IP addresses that this machine is using.
|
|
static Array< IPAddress > | getAllAddresses (bool includeIPv6=false) |
| Populates a list of all the IP addresses that this machine is using.
|
|
static IPAddress | getLocalAddress (bool includeIPv6=false) |
| Returns the first 'real' address for the local machine.
|
|
static String | getFormattedAddress (const String &unformattedAddress) |
| Returns a formatted version of the provided IPv6 address conforming to RFC 5952 with leading zeros suppressed, lower case characters, and double-colon notation used to represent contiguous 16-bit fields of zeros.
|
|
static bool | isIPv4MappedAddress (const IPAddress &mappedAddress) |
| Returns true if the given IP address is an IPv4-mapped IPv6 address.
|
|
static IPAddress | convertIPv4MappedAddressToIPv4 (const IPAddress &mappedAddress) |
| Converts an IPv4-mapped IPv6 address to an IPv4 address.
|
|
static IPAddress | convertIPv4AddressToIPv4Mapped (const IPAddress &addressToMap) |
| Converts an IPv4 address to an IPv4-mapped IPv6 address.
|
|
static IPAddress | getInterfaceBroadcastAddress (const IPAddress &interfaceAddress) |
| If the IPAdress is the address of an interface on the machine, returns the associated broadcast address.
|
|
Represents an IP address.