remove all Changes besides operator==

This commit is contained in:
ntruchsess 2013-12-06 19:05:31 +01:00
parent 889e1f6583
commit fbdf3a18ee
3 changed files with 0 additions and 23 deletions

View File

@ -19,9 +19,6 @@ public:
virtual void stop() = 0;
virtual uint8_t connected() = 0;
virtual operator bool() = 0;
virtual uint16_t localPort() = 0;
virtual IPAddress remoteIP() = 0;
virtual uint16_t remotePort() = 0;
protected:
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
};

View File

@ -167,20 +167,3 @@ EthernetClient::operator bool() {
bool EthernetClient::operator==(const EthernetClient& rhs) {
return _sock == rhs._sock && _sock != MAX_SOCK_NUM && rhs._sock != MAX_SOCK_NUM;
}
uint16_t EthernetClient::localPort() {
if (_sock == MAX_SOCK_NUM) return 0;
return W5100.readSnPORT(_sock);
}
IPAddress EthernetClient::remoteIP() {
if (_sock == MAX_SOCK_NUM) return IPAddress(0,0,0,0);
uint32_t _destaddress;
W5100.readSnDIPR(_sock,(uint8_t*) &_destaddress);
return IPAddress(_destaddress);
}
uint16_t EthernetClient::remotePort() {
if (_sock == MAX_SOCK_NUM) return 0;
return W5100.readSnDPORT(_sock);
}

View File

@ -25,9 +25,6 @@ public:
virtual uint8_t connected();
virtual operator bool();
virtual bool operator==(const EthernetClient&);
virtual uint16_t localPort();
virtual IPAddress remoteIP();
virtual uint16_t remotePort();
friend class EthernetServer;