ClearCore Library
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. More...
 
 IpAddress (uint32_t ipAddress)
 Construct an IP Address from an unsigned integer. More...
 
 IpAddress (const char *ipAddress)
 Construct an IP Address from a character array. More...
 
char * StringValue ()
 Returns a string representation of the IP Address. More...
 

Constructor & Destructor Documentation

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);
ClearCore::IpAddress::IpAddress ( uint32_t  ipAddress)
inline

Construct an IP Address from an unsigned integer.

IpAddress ip = IpAddress(3232235784);
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

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

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