|
|
@@ -37,10 +37,8 @@ public: |
|
|
static void findAllAddresses (Array<IPAddress>& results, bool includeIPv6 = false);
|
|
|
static void findAllAddresses (Array<IPAddress>& results, bool includeIPv6 = false);
|
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
//==============================================================================
|
|
|
/** Creates a null address - 0.0.0.0 (IPv4) or ::, (IPv6)
|
|
|
|
|
|
@param IPv6 if true indicates that this is an IPv6 address
|
|
|
|
|
|
*/
|
|
|
|
|
|
IPAddress (bool IPv6 = false) noexcept;
|
|
|
|
|
|
|
|
|
/** Creates a null address - 0.0.0.0 (IPv4) or ::, (IPv6) */
|
|
|
|
|
|
IPAddress() noexcept;
|
|
|
|
|
|
|
|
|
/** Creates an IPv4 or IPv6 address by reading 4 or 16 bytes from an array.
|
|
|
/** Creates an IPv4 or IPv6 address by reading 4 or 16 bytes from an array.
|
|
|
@param bytes The array containing the bytes to read.
|
|
|
@param bytes The array containing the bytes to read.
|
|
|
@@ -93,7 +91,7 @@ public: |
|
|
/** The elements of the IP address. */
|
|
|
/** The elements of the IP address. */
|
|
|
uint8 address[16];
|
|
|
uint8 address[16];
|
|
|
|
|
|
|
|
|
bool isIPv6;
|
|
|
|
|
|
|
|
|
bool isIPv6 = false;
|
|
|
|
|
|
|
|
|
private:
|
|
|
private:
|
|
|
/** Union used to split a 16-bit unsigned integer into 2 8-bit unsigned integers or vice-versa */
|
|
|
/** Union used to split a 16-bit unsigned integer into 2 8-bit unsigned integers or vice-versa */
|
|
|
|