B2BITS FIX Antenna C++  2.31.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
System::IPAddr Struct Reference

Represents IP address. More...

#include <B2BITS_IPAddr.h>

Public Member Functions

bool operator!= (IPAddr const &rv) const
 Compares two IPAddr instances. More...
 
bool operator== (IPAddr const &rv) const
 Compares two IPAddr instances. More...
 

Static Public Member Functions

static IPAddr create (System::u8 a1, System::u8 a2, System::u8 a3, System::u8 a4) throw ()
 Constructs IPAddr instance using IP address parts. More...
 
static IPAddr create (System::u32 addr) throw ()
 Constructs IPAddr instance using IPv4 address. More...
 

Public Attributes

System::u8 a1
 Part of the IP address. More...
 
System::u8 a2
 
System::u8 a3
 
System::u8 a4
 

Detailed Description

Represents IP address.

Member Function Documentation

◆ create() [1/2]

static IPAddr System::IPAddr::create ( System::u8  a1,
System::u8  a2,
System::u8  a3,
System::u8  a4 
)
throw (
)
inlinestatic

Constructs IPAddr instance using IP address parts.

References a1, a2, a3, and a4.

◆ create() [2/2]

static IPAddr System::IPAddr::create ( System::u32  addr)
throw (
)
inlinestatic

Constructs IPAddr instance using IPv4 address.

◆ operator!=()

bool System::IPAddr::operator!= ( IPAddr const &  rv) const
inline

Compares two IPAddr instances.

Returns true, if instances are NOT equal; false otherwise.

◆ operator==()

bool System::IPAddr::operator== ( IPAddr const &  rv) const
inline

Compares two IPAddr instances.

Returns true, if instances are equal; false otherwise.

References a1, a2, a3, and a4.

Member Data Documentation

◆ a1

System::u8 System::IPAddr::a1

Part of the IP address.

Note
Field order is important. Please do not change it.

Referenced by create(), System::operator<<(), and operator==().

◆ a2

System::u8 System::IPAddr::a2

◆ a3

System::u8 System::IPAddr::a3

◆ a4

System::u8 System::IPAddr::a4