MCPcopy Create free account
hub / github.com/SmingHub/Sming / onError

Method onError

Sming/Components/Network/src/Network/TcpConnection.cpp:187–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void TcpConnection::onError([[maybe_unused]] err_t err)
188{
189 if(ssl != nullptr) {
190 ssl->close();
191 }
192 debug_tcp_d("connection error: %d", err);
193}
194
195void TcpConnection::onReadyToSendData(TcpConnectionEvent sourceEvent)
196{

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected