Skip to content

Commit aac1a65

Browse files
committed
add operator==, remoteIP and remotePort to EthernetClient
1 parent 3bd788d commit aac1a65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hardware/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)