We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ebfc7b commit 75fefe6Copy full SHA for 75fefe6
src/EthernetClient.h
@@ -31,6 +31,9 @@ class EthernetClient : public Client {
31
virtual bool operator==(const EthernetClient&);
32
virtual bool operator!=(const EthernetClient& rhs) { return !this->operator==(rhs); };
33
uint8_t getSocketNumber();
34
+ virtual uint16_t localPort() { return (_tcp_client->pcb->local_port); };
35
+ virtual IPAddress remoteIP() { return (IPAddress(_tcp_client->pcb->remote_ip.addr)); };
36
+ virtual uint16_t remotePort() { return (_tcp_client->pcb->remote_port); };
37
38
friend class EthernetServer;
39
0 commit comments