From 68e218dda85909e8dde2a44fe2384155276f7091 Mon Sep 17 00:00:00 2001 From: ntruchsess Date: Mon, 25 Nov 2013 18:34:27 +0100 Subject: 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(); }; }; -- cgit v1.2.3-18-g5258