Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
IPAddress Class Reference

#include <IPAddress.h>

Inheritance diagram for IPAddress:
Inheritance graph
[legend]

Public Member Functions

bool fromString (const char *address)
 
bool fromString (const String &address)
 
 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
 
IPAddressoperator= (const uint8_t *address)
 
IPAddressoperator= (uint32_t address)
 
bool operator== (const IPAddress &addr) const
 
bool operator== (const uint8_t *addr) const
 
uint8_t operator[] (int index) const
 
uint8_t & operator[] (int index)
 
virtual size_t printTo (Print &p) const
 

Private Member Functions

uint8_t * raw_address ()
 

Private Attributes

union {
   uint8_t   bytes [4]
 
   uint32_t   dword
 
_address
 

Friends

class Client
 
class DhcpClass
 
class DNSClient
 
class EthernetClass
 
class Server
 
class UDP
 

Detailed Description

Definition at line 29 of file IPAddress.h.

Constructor & Destructor Documentation

IPAddress::IPAddress ( )

Definition at line 23 of file IPAddress.cpp.

IPAddress::IPAddress ( uint8_t  first_octet,
uint8_t  second_octet,
uint8_t  third_octet,
uint8_t  fourth_octet 
)

Definition at line 28 of file IPAddress.cpp.

IPAddress::IPAddress ( uint32_t  address)

Definition at line 36 of file IPAddress.cpp.

IPAddress::IPAddress ( const uint8_t *  address)

Definition at line 41 of file IPAddress.cpp.

Member Function Documentation

bool IPAddress::fromString ( const char *  address)

Definition at line 46 of file IPAddress.cpp.

bool IPAddress::fromString ( const String &  address)
inline

Definition at line 50 of file IPAddress.h.

IPAddress::operator uint32_t ( ) const
inline

Definition at line 54 of file IPAddress.h.

IPAddress & IPAddress::operator= ( const uint8_t *  address)

Definition at line 86 of file IPAddress.cpp.

IPAddress & IPAddress::operator= ( uint32_t  address)

Definition at line 92 of file IPAddress.cpp.

bool IPAddress::operator== ( const IPAddress addr) const
inline

Definition at line 55 of file IPAddress.h.

bool IPAddress::operator== ( const uint8_t *  addr) const

Definition at line 98 of file IPAddress.cpp.

uint8_t IPAddress::operator[] ( int  index) const
inline

Definition at line 59 of file IPAddress.h.

uint8_t& IPAddress::operator[] ( int  index)
inline

Definition at line 60 of file IPAddress.h.

size_t IPAddress::printTo ( Print p) const
virtual

Implements Printable.

Definition at line 103 of file IPAddress.cpp.

uint8_t* IPAddress::raw_address ( )
inlineprivate

Definition at line 40 of file IPAddress.h.

Friends And Related Function Documentation

friend class Client
friend

Definition at line 70 of file IPAddress.h.

friend class DhcpClass
friend

Definition at line 72 of file IPAddress.h.

friend class DNSClient
friend

Definition at line 73 of file IPAddress.h.

friend class EthernetClass
friend

Definition at line 68 of file IPAddress.h.

friend class Server
friend

Definition at line 71 of file IPAddress.h.

friend class UDP
friend

Definition at line 69 of file IPAddress.h.

Member Data Documentation

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

Definition at line 32 of file IPAddress.h.

uint32_t IPAddress::dword

Definition at line 33 of file IPAddress.h.


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


arduino_daq
Author(s):
autogenerated on Mon Jun 10 2019 12:46:03