Skip to content

Commit 7150a1c

Browse files
committed
add operator==, remoteIP and remotePort to EthernetClient
(Filtered from arduino/Arduino@ca37de4)
1 parent 5f1133f commit 7150a1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/Client.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class Client : public Stream {
1919
virtual void stop() = 0;
2020
virtual uint8_t connected() = 0;
2121
virtual operator bool() = 0;
22+
virtual IPAddress remoteIP() = 0;
23+
virtual uint16_t remotePort() = 0;
2224
protected:
2325
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
2426
};

0 commit comments

Comments
 (0)