33#include "lwip/ip_addr.h"
44#ifndef HIDE_FROM_DOXYGEN
52 IpAddress() : m_ipAddress(IPADDR4_INIT(0)) {}
63 uint8_t thirdOctet, uint8_t fourthOctet) :
64 m_ipAddress(IPADDR4_INIT_BYTES(firstOctet, secondOctet,
65 thirdOctet, fourthOctet)) {}
74 IpAddress(uint32_t ipAddress) : m_ipAddress(IPADDR4_INIT(ipAddress)) {}
84 ipaddr_aton(ipAddress, &m_ipAddress);
97 return ipaddr_ntoa(&m_ipAddress);
100#ifndef HIDE_FROM_DOXYGEN
102 operator uint32_t()
const {
103 return m_ipAddress.addr;
107 ip_addr_t m_ipAddress;
An IP Address class.
Definition IpAddress.h:41
IpAddress(const char *ipAddress)
Construct an IP Address from a character array.
Definition IpAddress.h:83
IpAddress(uint32_t ipAddress)
Construct an IP Address from an unsigned integer.
Definition IpAddress.h:74
IpAddress(uint8_t firstOctet, uint8_t secondOctet, uint8_t thirdOctet, uint8_t fourthOctet)
Construct an IP Address from four octet values.
Definition IpAddress.h:62
char * StringValue()
Returns a string representation of the IP Address.
Definition IpAddress.h:96
Namespace to encompass the ClearCore board API.
Definition AdcManager.h:36