From 68e218dda85909e8dde2a44fe2384155276f7091 Mon Sep 17 00:00:00 2001 From: ntruchsess Date: Mon, 25 Nov 2013 18:34:27 +0100 Subject: [PATCH 1/3] add operator==, remoteIP and remotePort to EthernetClient --- cores/arduino/Client.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/arduino/Client.h b/cores/arduino/Client.h index ea13483..0222896 100644 --- a/cores/arduino/Client.h +++ b/cores/arduino/Client.h @@ -19,6 +19,8 @@ public: virtual void stop() = 0; virtual uint8_t connected() = 0; virtual operator bool() = 0; + virtual IPAddress remoteIP() = 0; + virtual uint16_t remotePort() = 0; protected: uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); }; }; From 6cdf45953fffecad088acc9b33f7a92bca2687ba Mon Sep 17 00:00:00 2001 From: ntruchsess Date: Wed, 27 Nov 2013 10:26:11 +0100 Subject: [PATCH 2/3] add localPort to EthernetClient, simplify operator== --- cores/arduino/Client.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/arduino/Client.h b/cores/arduino/Client.h index 0222896..3f686f9 100644 --- a/cores/arduino/Client.h +++ b/cores/arduino/Client.h @@ -19,6 +19,7 @@ public: virtual void stop() = 0; virtual uint8_t connected() = 0; virtual operator bool() = 0; + virtual uint16_t localPort() = 0; virtual IPAddress remoteIP() = 0; virtual uint16_t remotePort() = 0; protected: From faffdc1585ebb307e81b329fff9bc03965d71244 Mon Sep 17 00:00:00 2001 From: ntruchsess Date: Fri, 6 Dec 2013 19:05:31 +0100 Subject: [PATCH 3/3] remove all Changes besides operator== --- cores/arduino/Client.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/cores/arduino/Client.h b/cores/arduino/Client.h index 3f686f9..ea13483 100644 --- a/cores/arduino/Client.h +++ b/cores/arduino/Client.h @@ -19,9 +19,6 @@ public: virtual void stop() = 0; virtual uint8_t connected() = 0; virtual operator bool() = 0; - virtual uint16_t localPort() = 0; - virtual IPAddress remoteIP() = 0; - virtual uint16_t remotePort() = 0; protected: uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); }; };