B2BITS FIX Antenna C++ 2.33.0
Loading...
Searching...
No Matches
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.
 
bool operator== (IPAddr const &rv) const
 Compares two IPAddr instances.
 

Static Public Member Functions

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

Public Attributes

System::u8 a1
 Part of the IP address.
 
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::u32 addr)
throw ( )
inlinestatic

Constructs IPAddr instance using IPv4 address.

◆ create() [2/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.

◆ 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