ClearCore Library
Loading...
Searching...
No Matches
List of all members | Public Member Functions
ClearCore::IpAddress Class Reference

Detailed Description

An IP Address class.

An IP Address class. More...

#include <IpAddress.h>

Public Member Functions

 IpAddress (uint8_t firstOctet, uint8_t secondOctet, uint8_t thirdOctet, uint8_t fourthOctet)
 Construct an IP Address from four octet values.
 
 IpAddress (uint32_t ipAddress)
 Construct an IP Address from an unsigned integer.
 
 IpAddress (const char *ipAddress)
 Construct an IP Address from a character array.
 
char * StringValue ()
 Returns a string representation of the IP Address.
 

Constructor & Destructor Documentation

◆ IpAddress() [1/3]

ClearCore::IpAddress::IpAddress ( uint8_t  firstOctet,
uint8_t  secondOctet,
uint8_t  thirdOctet,
uint8_t  fourthOctet 
)
inline

Construct an IP Address from four octet values.

IpAddress ip = IpAddress(192, 168, 1, 8);
An IP Address class.
Definition IpAddress.h:41

◆ IpAddress() [2/3]

ClearCore::IpAddress::IpAddress ( uint32_t  ipAddress)
inline

Construct an IP Address from an unsigned integer.

IpAddress ip = IpAddress(3232235784);

◆ IpAddress() [3/3]

ClearCore::IpAddress::IpAddress ( const char *  ipAddress)
inlineexplicit

Construct an IP Address from a character array.

IpAddress ip = IpAddress("192.168.1.8");

Member Function Documentation

◆ StringValue()

char * ClearCore::IpAddress::StringValue ( )
inline

The documentation for this class was generated from the following file: