File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,13 @@ uint8_t WiFiClient::connected() {
226
226
return rv;
227
227
}
228
228
229
+ /* -------------------------------------------------------------------------- */
230
+ bool WiFiClient::operator ==(const WiFiClient& whs)
231
+ {
232
+ /* -------------------------------------------------------------------------- */
233
+ return _sock == whs._sock ;
234
+ }
235
+
229
236
/* -------------------------------------------------------------------------- */
230
237
IPAddress WiFiClient::remoteIP () {
231
238
/* -------------------------------------------------------------------------- */
Original file line number Diff line number Diff line change @@ -54,7 +54,11 @@ class WiFiClient : public Client {
54
54
virtual operator bool () {
55
55
return _sock != -1 ;
56
56
}
57
-
57
+ virtual bool operator ==(const WiFiClient&);
58
+ virtual bool operator !=(const WiFiClient& whs)
59
+ {
60
+ return !this ->operator ==(whs);
61
+ };
58
62
virtual IPAddress remoteIP ();
59
63
virtual uint16_t remotePort ();
60
64
You can’t perform that action at this time.
0 commit comments