Skip to content

Commit 16b308a

Browse files
committed
add localPort to EthernetClient, simplify operator==
1 parent dba8f3d commit 16b308a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arduino/cores/arduino/Client.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Client : public Stream {
1919
virtual void stop() = 0;
2020
virtual uint8_t connected() = 0;
2121
virtual operator bool() = 0;
22+
virtual uint16_t localPort() = 0;
2223
virtual IPAddress remoteIP() = 0;
2324
virtual uint16_t remotePort() = 0;
2425
protected:

0 commit comments

Comments
 (0)