MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / connected

Method connected

Arduino/libraries/Ethernet2/src/EthernetClient.cpp:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146uint8_t EthernetClient::connected() {
147 if (_sock == MAX_SOCK_NUM) return 0;
148
149 uint8_t s = status();
150 return !(s == SnSR::LISTEN || s == SnSR::CLOSED || s == SnSR::FIN_WAIT ||
151 (s == SnSR::CLOSE_WAIT && !available()));
152}
153
154uint8_t EthernetClient::status() {
155 if (_sock == MAX_SOCK_NUM) return SnSR::CLOSED;

Callers 1

checkStatusMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected