Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of scoreLight_Advanced by
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 #.
Generated on Tue Jul 12 2022 18:50:28 by
1.7.2
