1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-18 12:54:25 +01:00

Removed typos in EthernetClient.cpp

This commit is contained in:
Cristian Maglie 2015-07-14 15:40:53 +02:00
parent e5805926d0
commit 94fcb02e0f

View File

@ -150,7 +150,7 @@ void EthernetClient::stop() {
uint8_t EthernetClient::connected() {
if (_sock == MAX_SOCK_NUM) return 0;
uint8_t s = status();
return !(s == SnSR::LISTEN || s == SnSR::CLOSED || s == SnSR::FIN_WAIT ||
(s == SnSR::CLOSE_WAIT && !available()));
@ -172,6 +172,6 @@ bool EthernetClient::operator==(const EthernetClient& rhs) {
return _sock == rhs._sock && _sock != MAX_SOCK_NUM && rhs._sock != MAX_SOCK_NUM;
}
+uint8_t EthernetClient::getSocketNumber () {
+ return _sock;
+}
uint8_t EthernetClient::getSocketNumber() {
return _sock;
}