openshot-audio  0.1.5
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() [1/5]

IPAddress::IPAddress ( )
noexcept

Creates a null address (0.0.0.0).

◆ IPAddress() [2/5]

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

Creates an address from 4 bytes.

◆ IPAddress() [3/5]

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

Creates an address from 4 bytes.

◆ IPAddress() [4/5]

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() [5/5]

IPAddress::IPAddress ( const String address)
explicit

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

Member Function Documentation

◆ any()

IPAddress IPAddress::any ( )
staticnoexcept

Returns an address meaning "any" (0.0.0.0)

◆ broadcast()

IPAddress IPAddress::broadcast ( )
staticnoexcept

Returns an address meaning "broadcast" (255.255.255.255)

◆ findAllAddresses()

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

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

◆ local()

IPAddress IPAddress::local ( )
staticnoexcept

Returns an address meaning "localhost" (127.0.0.1)

◆ operator!=()

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

◆ operator==()

bool IPAddress::operator== ( const IPAddress other) const
noexcept

◆ toString()

String IPAddress::toString ( ) const

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

Member Data Documentation

◆ address

uint8 IPAddress::address[4]

The elements of the IP address.


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