aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/IPAddress.h
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/IPAddress.h')
-rw-r--r--cores/arduino/IPAddress.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cores/arduino/IPAddress.h b/cores/arduino/IPAddress.h
index 487e420..2585aec 100644
--- a/cores/arduino/IPAddress.h
+++ b/cores/arduino/IPAddress.h
@@ -26,9 +26,11 @@
#ifndef IPAddress_h
#define IPAddress_h
+#include <Printable.h>
+
// A class to make it easier to handle and pass around IP addresses
-class IPAddress {
+class IPAddress : public Printable {
private:
uint8_t _address[4]; // IPv4 address
// Access the raw byte array containing the address. Because this returns a pointer
@@ -58,6 +60,8 @@ public:
IPAddress& operator=(const uint8_t *address);
IPAddress& operator=(uint32_t address);
+ virtual size_t printTo(Print& p) const;
+
friend class EthernetClass;
friend class UDP;
friend class Client;