From 7bc51d87eacf6f2f385e53f47f9eca26b71ac89d Mon Sep 17 00:00:00 2001 From: Aberto Panu Date: Tue, 12 May 2015 12:03:04 +0200 Subject: [PATCH 1/2] Update EthernetClient.cpp --- libraries/Ethernet/src/EthernetClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/Ethernet/src/EthernetClient.cpp b/libraries/Ethernet/src/EthernetClient.cpp index a592bfdc956..db400b26b6f 100644 --- a/libraries/Ethernet/src/EthernetClient.cpp +++ b/libraries/Ethernet/src/EthernetClient.cpp @@ -166,3 +166,7 @@ EthernetClient::operator bool() { bool EthernetClient::operator==(const EthernetClient& rhs) { return _sock == rhs._sock && _sock != MAX_SOCK_NUM && rhs._sock != MAX_SOCK_NUM; } + ++uint8_t EthernetClient::getSocketNumber () { ++ return _sock; ++} From 691bccc943435b8ba57aa1452ce1d25a7b47f1e1 Mon Sep 17 00:00:00 2001 From: Aberto Panu Date: Tue, 12 May 2015 12:04:08 +0200 Subject: [PATCH 2/2] Update EthernetClient.h --- libraries/Ethernet/src/EthernetClient.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/Ethernet/src/EthernetClient.h b/libraries/Ethernet/src/EthernetClient.h index 16e2500bc37..52a3b8f4284 100644 --- a/libraries/Ethernet/src/EthernetClient.h +++ b/libraries/Ethernet/src/EthernetClient.h @@ -28,6 +28,7 @@ class EthernetClient : public Client { virtual bool operator!=(const bool value) { return bool() != value; } virtual bool operator==(const EthernetClient&); virtual bool operator!=(const EthernetClient& rhs) { return !this->operator==(rhs); }; + uint8_t getSocketNumber(); friend class EthernetServer;