mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
commit
27bc345ff8
@ -30,6 +30,7 @@ endPacket KEYWORD2
|
||||
parsePacket KEYWORD2
|
||||
remoteIP KEYWORD2
|
||||
remotePort KEYWORD2
|
||||
getSocketNumber KEYWORD2
|
||||
|
||||
#######################################
|
||||
# Constants (LITERAL1)
|
||||
|
@ -171,3 +171,7 @@ EthernetClient::operator bool() {
|
||||
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;
|
||||
+}
|
||||
|
@ -28,6 +28,7 @@ public:
|
||||
virtual bool operator!=(const bool value) { return bool() != value; }
|
||||
virtual bool operator==(const EthernetClient&);
|
||||
virtual bool operator!=(const EthernetClient& rhs) { return !this->operator==(rhs); };
|
||||
uint8_t getSocketNumber();
|
||||
|
||||
friend class EthernetServer;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user