ESP8266
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IPAddress Class Reference
Inheritance diagram for IPAddress:
Printable

Public Member Functions

 IPAddress ()
 
 IPAddress (uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet)
 
 IPAddress (uint32_t address)
 
 IPAddress (const uint8_t *address)
 
 operator uint32_t () const
 
bool operator== (const IPAddress &addr) const
 
bool operator== (uint32_t addr) const
 
bool operator== (const uint8_t *addr) const
 
uint8_t operator[] (int index) const
 
uint8_t & operator[] (int index)
 
IPAddressoperator= (const uint8_t *address)
 
IPAddressoperator= (uint32_t address)
 
virtual size_t printTo (Print &p) const
 
String toString ()
 

Private Member Functions

uint8_t * raw_address ()
 

Private Attributes

union {
   uint8_t   bytes [4]
 
   uint32_t   dword
 
_address
 

Constructor & Destructor Documentation

IPAddress::IPAddress ( )
IPAddress::IPAddress ( uint8_t  first_octet,
uint8_t  second_octet,
uint8_t  third_octet,
uint8_t  fourth_octet 
)
IPAddress::IPAddress ( uint32_t  address)
IPAddress::IPAddress ( const uint8_t *  address)

Member Function Documentation

IPAddress::operator uint32_t ( ) const
IPAddress & IPAddress::operator= ( const uint8_t *  address)
IPAddress & IPAddress::operator= ( uint32_t  address)
bool IPAddress::operator== ( const IPAddress addr) const
bool IPAddress::operator== ( uint32_t  addr) const
bool IPAddress::operator== ( const uint8_t *  addr) const
uint8_t IPAddress::operator[] ( int  index) const
uint8_t& IPAddress::operator[] ( int  index)
size_t IPAddress::printTo ( Print p) const
virtual

Implements Printable.

uint8_t* IPAddress::raw_address ( )
private
String IPAddress::toString ( )

Member Data Documentation

union { ... } IPAddress::_address
uint8_t IPAddress::bytes[4]
uint32_t IPAddress::dword