C++ API Library Reference  4.3.2-74-ge1d4cca
Public Functions | Public Static Functions | List of all members
IPAddress Class Reference

The IPAddress class defines an Internet Protocol address. Currently only supports IPv4, but could be extended to support IPv6

Public Functions

ByteArray AddressBytes () const
 
Net::AddressFamily::Enum AddressFamily () const
 
HashCode GetHashCode () const
 
bool operator!= (IPAddress const &other) const
 
bool operator== (IPAddress const &other) const
 
String ToString () const
 
Constructors and Destructors
 IPAddress ()
 
 IPAddress (Int64 address)
 
 IPAddress (ByteArray address)
 
 ~IPAddress ()
 

Public Static Functions

static IPAddress Any ()
 
static IPAddress Broadcast ()
 
static Int16 HostToNetworkOrder (Int16 host)
 
static Int32 HostToNetworkOrder (Int32 host)
 
static Int64 HostToNetworkOrder (Int64 host)
 
static bool IsLoopback (IPAddress address)
 
static IPAddress Loopback ()
 
static Int16 NetworkToHostOrder (Int16 network)
 
static Int32 NetworkToHostOrder (Int32 network)
 
static Int64 NetworkToHostOrder (Int64 network)
 
static IPAddress None ()
 
static bool TryParse (String const &ipString, IPAddress &address)
 

Usage Description

ByteArray AddressBytes ( ) const
Net::AddressFamily::Enum AddressFamily ( ) const
static IPAddress Any ( )
static

Provides an IP address that indicates that any network interface can be used.

static IPAddress Broadcast ( )
static

Provides the IP broadcast address.

HashCode GetHashCode ( ) const

Places the IPAddress into a hash table.

static Int16 HostToNetworkOrder ( Int16  host)
inlinestatic

Converts an Int16 value from host byte order to network byte order.

static Int32 HostToNetworkOrder ( Int32  host)
inlinestatic

Converts an Int32 value from host byte order to network byte order.

static Int64 HostToNetworkOrder ( Int64  host)
inlinestatic

Converts an Int64 value from host byte order to network byte order.

static bool IsLoopback ( IPAddress  address)
static

Indicates whether the specified IP address is the loopback address.

static IPAddress Loopback ( )
static

Provides the IP loopback address.

static Int16 NetworkToHostOrder ( Int16  network)
inlinestatic

Converts an Int16 value from network byte order to host byte order.

static Int32 NetworkToHostOrder ( Int32  network)
inlinestatic

Converts an Int32 value from network byte order to host byte order.

static Int64 NetworkToHostOrder ( Int64  network)
inlinestatic

Converts an Int64 value from network byte order to host byte order.

static IPAddress None ( )
static

Provides an IP address that indicates that no network interface should be used.

bool operator!= ( IPAddress const &  other) const

Checks if the current instance is equal to the specified other instance. Returns true if they are equal, otherwise returns false.

bool operator== ( IPAddress const &  other) const

Checks if the current instance is equal to the specified other instance. Returns true if they are equal, otherwise returns false.

String ToString ( ) const

Converts an Internet address to a string.

static bool TryParse ( String const &  ipString,
IPAddress address 
)
static

Determines whether a string is a valid IP address.