Skip to content

Commit fbdf3a1

Browse files
committed
remove all Changes besides operator==
1 parent 889e1f6 commit fbdf3a1

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

hardware/arduino/cores/arduino/Client.h

-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ class Client : public Stream {
1919
virtual void stop() = 0;
2020
virtual uint8_t connected() = 0;
2121
virtual operator bool() = 0;
22-
virtual uint16_t localPort() = 0;
23-
virtual IPAddress remoteIP() = 0;
24-
virtual uint16_t remotePort() = 0;
2522
protected:
2623
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
2724
};

libraries/Ethernet/EthernetClient.cpp

-17
Original file line numberDiff line numberDiff line change
@@ -167,20 +167,3 @@ EthernetClient::operator bool() {
167167
bool EthernetClient::operator==(const EthernetClient& rhs) {
168168
return _sock == rhs._sock && _sock != MAX_SOCK_NUM && rhs._sock != MAX_SOCK_NUM;
169169
}
170-
171-
uint16_t EthernetClient::localPort() {
172-
if (_sock == MAX_SOCK_NUM) return 0;
173-
return W5100.readSnPORT(_sock);
174-
}
175-
176-
IPAddress EthernetClient::remoteIP() {
177-
if (_sock == MAX_SOCK_NUM) return IPAddress(0,0,0,0);
178-
uint32_t _destaddress;
179-
W5100.readSnDIPR(_sock,(uint8_t*) &_destaddress);
180-
return IPAddress(_destaddress);
181-
}
182-
183-
uint16_t EthernetClient::remotePort() {
184-
if (_sock == MAX_SOCK_NUM) return 0;
185-
return W5100.readSnDPORT(_sock);
186-
}

libraries/Ethernet/EthernetClient.h

-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ class EthernetClient : public Client {
2525
virtual uint8_t connected();
2626
virtual operator bool();
2727
virtual bool operator==(const EthernetClient&);
28-
virtual uint16_t localPort();
29-
virtual IPAddress remoteIP();
30-
virtual uint16_t remotePort();
3128

3229
friend class EthernetServer;
3330

0 commit comments

Comments
 (0)