23 #include "Printable.h"
46 uint8_t* raw_address() {
return _address.bytes; };
51 IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet);
55 bool fromString(
const char *address);
56 bool fromString(
const String &address) {
return fromString(address.c_str()); }
60 operator uint32_t()
const {
return _address.dword; };
61 bool operator==(
const IPAddress& addr)
const {
return _address.dword == addr._address.dword; };
62 bool operator!=(
const IPAddress& addr)
const {
return _address.dword != addr._address.dword; };
63 bool operator==(
const uint8_t* addr)
const;
66 uint8_t operator[](
int index)
const {
return _address.bytes[index]; };
67 uint8_t& operator[](
int index) {
return _address.bytes[index]; };
70 IPAddress& operator=(
const uint8_t *address);
73 virtual size_t printTo(
Print& p)
const;
79 friend ::EthernetClass;
Definition: IPAddress.h:35
Definition: Printable.h:34