File tree 3 files changed +0
-28
lines changed
examples/AdvancedChatServer
3 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -140,25 +140,6 @@ UIPClient::operator==(const UIPClient& rhs) {
140
140
return _uip_conn && rhs._uip_conn && _uip_conn == rhs._uip_conn ;
141
141
}
142
142
143
- uint16_t
144
- UIPClient::localPort () {
145
- if (!_uip_conn) return 0 ;
146
- return htons (_uip_conn->lport );
147
- }
148
-
149
- IPAddress
150
- UIPClient::remoteIP () {
151
- if (!_uip_conn) return IPAddress ();
152
- return ip_addr_uip (_uip_conn->ripaddr );
153
- }
154
-
155
- uint16_t
156
- UIPClient::remotePort () {
157
- if (!_uip_conn) return 0 ;
158
- return htons (_uip_conn->rport );
159
- }
160
-
161
-
162
143
UIPClient::operator bool ()
163
144
{
164
145
UIPEthernet.tick ();
Original file line number Diff line number Diff line change @@ -65,9 +65,6 @@ class UIPClient : public Client {
65
65
operator bool ();
66
66
virtual bool operator==(const EthernetClient&);
67
67
virtual bool operator!=(const EthernetClient& rhs) { return !this->operator ==(rhs); };
68
- virtual uint16_t localPort ();
69
- virtual IPAddress remoteIP ();
70
- virtual uint16_t remotePort ();
71
68
72
69
size_t write (uint8_t );
73
70
size_t write (const uint8_t *buf, size_t size);
Original file line number Diff line number Diff line change @@ -77,12 +77,6 @@ void loop() {
77
77
client.println (" Hello, client!" );
78
78
client.print (" my IP: " );
79
79
client.println (Ethernet.localIP ());
80
- client.print (" my port: " );
81
- client.println (client.localPort ());
82
- client.print (" your IP: " );
83
- client.println (client.remoteIP ());
84
- client.print (" your port: " );
85
- client.println (client.remotePort ());
86
80
break ;
87
81
}
88
82
}
You can’t perform that action at this time.
0 commit comments