Skip to content

Commit dba8f3d

Browse files
committed
add operator==, remoteIP and remotePort to EthernetClient
1 parent 4588265 commit dba8f3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arduino/cores/arduino/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)