openshot-audio  0.1.2
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
IPAddress Class Reference

#include <juce_IPAddress.h>

Public Member Functions

 IPAddress () noexcept
 
 IPAddress (const uint8 bytes[4]) noexcept
 
 IPAddress (uint8 address1, uint8 address2, uint8 address3, uint8 address4) noexcept
 
 IPAddress (uint32 asNativeEndian32Bit) noexcept
 
 IPAddress (const String &address)
 
String toString () const
 
bool operator== (const IPAddress &other) const noexcept
 
bool operator!= (const IPAddress &other) const noexcept
 

Static Public Member Functions

static void findAllAddresses (Array< IPAddress > &results)
 
static IPAddress any () noexcept
 
static IPAddress broadcast () noexcept
 
static IPAddress local () noexcept
 

Public Attributes

uint8 address [4]
 

Detailed Description

An IPV4 address.

Constructor & Destructor Documentation

IPAddress::IPAddress ( )
noexcept

Creates a null address (0.0.0.0).

IPAddress::IPAddress ( const uint8  bytes[4])
explicitnoexcept

Creates an address from 4 bytes.

IPAddress::IPAddress ( uint8  address1,
uint8  address2,
uint8  address3,
uint8  address4 
)
noexcept

Creates an address from 4 bytes.

IPAddress::IPAddress ( uint32  asNativeEndian32Bit)
explicitnoexcept

Creates an address from a packed 32-bit integer, where the MSB is the first number in the address, and the LSB is the last.

IPAddress::IPAddress ( const String address)
explicit

Parses a string IP address of the form "a.b.c.d".

Member Function Documentation

IPAddress IPAddress::any ( )
staticnoexcept

Returns an address meaning "any" (0.0.0.0)

IPAddress IPAddress::broadcast ( )
staticnoexcept

Returns an address meaning "broadcast" (255.255.255.255)

void IPAddress::findAllAddresses ( Array< IPAddress > &  results)
static

Populates a list of all the IP addresses that this machine is using.

IPAddress IPAddress::local ( )
staticnoexcept

Returns an address meaning "localhost" (127.0.0.1)

bool IPAddress::operator!= ( const IPAddress other) const
noexcept
bool IPAddress::operator== ( const IPAddress other) const
noexcept
String IPAddress::toString ( ) const

Returns a dot-separated string in the form "1.2.3.4"

Member Data Documentation

uint8 IPAddress::address[4]

The elements of the IP address.


The documentation for this class was generated from the following files: