aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/IPAddress.h
diff options
context:
space:
mode:
authoramcewen <amcewen@bcs.org.uk>2011-08-28 20:28:53 +0100
committeramcewen <amcewen@bcs.org.uk>2011-08-28 20:28:53 +0100
commit8ce77304f796e077f594859f270f9f024dc05605 (patch)
tree285233e5b57f0029551056b1951e4e539b265951 /cores/arduino/IPAddress.h
parente852be3e97763e621a0f8014a3db4bf92a650b50 (diff)
parentf9d50a793010db3a2968262f35d34edaf048a650 (diff)
Merge branch 'master' into wifly_integration
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;