Dependents:   SNMPAgent HTTPServer think_speak_a cyassl-client ... more

Embed: (wiki syntax)

« Back to documentation index

IpAddr Class Reference

IpAddr Class Reference

IP Address container. More...

#include <ipaddr.h>

Public Member Functions

 IpAddr (uint8_t ip0, uint8_t ip1, uint8_t ip2, uint8_t ip3)
 Initializes IP address with provided values.
 IpAddr ()
 Initializes IP address with null values.
uint8_t operator[] (unsigned int i) const
 Returns IP address byte #.
bool isEq (const IpAddr &b) const
 Compares too addresses.
bool operator== (const IpAddr &b) const
 Compares too addresses.
bool operator!= (const IpAddr &b) const
 Compares too addresses.
bool isNull () const
 Checks whether the address is null.
bool isBroadcast () const
 Checks whether the address is a broadcast address.
bool isMulticast () const
 Checks whether the address is a multicast address.
 IpAddr (uint8_t ip0, uint8_t ip1, uint8_t ip2, uint8_t ip3)
 Initializes IP address with provided values.
 IpAddr ()
 Initializes IP address with null values.
uint8_t operator[] (unsigned int i) const
 Returns IP address byte #.
bool isEq (const IpAddr &b) const
 Compares too addresses.
bool operator== (const IpAddr &b) const
 Compares too addresses.
bool operator!= (const IpAddr &b) const
 Compares too addresses.
bool isNull () const
 Checks whether the address is null.
bool isBroadcast () const
 Checks whether the address is a broadcast address.
bool isMulticast () const
 Checks whether the address is a multicast address.

Detailed Description

IP Address container.

This class is a container for an IPv4 address.

Definition at line 38 of file LPC1768/core/ipaddr.h.


Constructor & Destructor Documentation

IpAddr ( uint8_t  ip0,
uint8_t  ip1,
uint8_t  ip2,
uint8_t  ip3 
)

Initializes IP address with provided values.

IpAddr (  )

Initializes IP address with null values.

IpAddr ( uint8_t  ip0,
uint8_t  ip1,
uint8_t  ip2,
uint8_t  ip3 
)

Initializes IP address with provided values.

IpAddr (  )

Initializes IP address with null values.


Member Function Documentation

bool isBroadcast (  ) const

Checks whether the address is a broadcast address.

Returns:
true if the address is a broadcast address
bool isBroadcast (  ) const

Checks whether the address is a broadcast address.

Returns:
true if the address is a broadcast address
bool isEq ( const IpAddr b ) const

Compares too addresses.

Returns:
true if the two addresses are equal
bool isEq ( const IpAddr b ) const

Compares too addresses.

Returns:
true if the two addresses are equal
bool isMulticast (  ) const

Checks whether the address is a multicast address.

Returns:
true if the address is a multicast address
bool isMulticast (  ) const

Checks whether the address is a multicast address.

Returns:
true if the address is a multicast address
bool isNull (  ) const

Checks whether the address is null.

Returns:
true if the address is null
bool isNull (  ) const

Checks whether the address is null.

Returns:
true if the address is null
bool operator!= ( const IpAddr b ) const

Compares too addresses.

Returns:
true if the two addresses are different
bool operator!= ( const IpAddr b ) const

Compares too addresses.

Returns:
true if the two addresses are different
bool operator== ( const IpAddr b ) const

Compares too addresses.

Returns:
true if the two addresses are equal
bool operator== ( const IpAddr b ) const

Compares too addresses.

Returns:
true if the two addresses are equal
uint8_t operator[] ( unsigned int  i ) const

Returns IP address byte #.

uint8_t operator[] ( unsigned int  i ) const

Returns IP address byte #.