diff options
author | ntruchsess <norbert.truchsess@t-online.de> | 2013-11-25 18:34:27 +0100 |
---|---|---|
committer | ntruchsess <norbert.truchsess@t-online.de> | 2013-11-26 00:12:44 +0100 |
commit | 68e218dda85909e8dde2a44fe2384155276f7091 (patch) | |
tree | ec97d25cbc738f9f2c66d4d37f7a55a4a040d675 | |
parent | 3b51f9589ffff8947054aa132126a6f2c543ac01 (diff) |
add operator==, remoteIP and remotePort to EthernetClient
-rw-r--r-- | cores/arduino/Client.h | 2 |
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(); }; }; |