aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Client.h
diff options
context:
space:
mode:
authorntruchsess <norbert.truchsess@t-online.de>2013-11-25 18:34:27 +0100
committerntruchsess <norbert.truchsess@t-online.de>2013-11-26 00:12:44 +0100
commit68e218dda85909e8dde2a44fe2384155276f7091 (patch)
treeec97d25cbc738f9f2c66d4d37f7a55a4a040d675 /cores/arduino/Client.h
parent3b51f9589ffff8947054aa132126a6f2c543ac01 (diff)
add operator==, remoteIP and remotePort to EthernetClient
Diffstat (limited to 'cores/arduino/Client.h')
-rw-r--r--cores/arduino/Client.h2
1 files changed, 2 insertions, 0 deletions
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(); };
};