We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f3914e commit c5f0815Copy full SHA for c5f0815
libraries/Ethernet/src/EthernetClient.cpp
@@ -171,3 +171,7 @@ EthernetClient::operator bool() {
171
bool EthernetClient::operator==(const EthernetClient& rhs) {
172
return _sock == rhs._sock && _sock != MAX_SOCK_NUM && rhs._sock != MAX_SOCK_NUM;
173
}
174
+
175
++uint8_t EthernetClient::getSocketNumber () {
176
++ return _sock;
177
++}
libraries/Ethernet/src/EthernetClient.h
@@ -28,6 +28,7 @@ class EthernetClient : public Client {
28
virtual bool operator!=(const bool value) { return bool() != value; }
29
virtual bool operator==(const EthernetClient&);
30
virtual bool operator!=(const EthernetClient& rhs) { return !this->operator==(rhs); };
31
+ uint8_t getSocketNumber();
32
33
friend class EthernetServer;
34
0 commit comments