File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ endPacket KEYWORD2
30
30
parsePacket KEYWORD2
31
31
remoteIP KEYWORD2
32
32
remotePort KEYWORD2
33
+ getSocketNumber KEYWORD2
33
34
34
35
#######################################
35
36
# Constants (LITERAL1)
Original file line number Diff line number Diff line change @@ -171,3 +171,7 @@ EthernetClient::operator bool() {
171
171
bool EthernetClient::operator ==(const EthernetClient& rhs) {
172
172
return _sock == rhs._sock && _sock != MAX_SOCK_NUM && rhs._sock != MAX_SOCK_NUM;
173
173
}
174
+
175
+ +uint8_t EthernetClient::getSocketNumber () {
176
+ + return _sock;
177
+ +}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class EthernetClient : public Client {
28
28
virtual bool operator !=(const bool value) { return bool () != value; }
29
29
virtual bool operator ==(const EthernetClient&);
30
30
virtual bool operator !=(const EthernetClient& rhs) { return !this ->operator ==(rhs); };
31
+ uint8_t getSocketNumber ();
31
32
32
33
friend class EthernetServer ;
33
34
You can’t perform that action at this time.
0 commit comments