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

Method onSent

Sming/Components/Network/src/Network/TcpClient.cpp:214–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214err_t TcpClient::onSent(uint16_t len)
215{
216 totalSentConfirmedBytes += len;
217
218 if(stream == nullptr && closeAfterSent != eTCCASS_None) {
219 TcpConnection::onSent(len);
220 close();
221 } else {
222 // Fire ReadyToSend callback
223 TcpConnection::onSent(len);
224 }
225
226 return ERR_OK;
227}
228
229void TcpClient::onError(err_t err)
230{

Callers

nothing calls this directly

Calls 1

onSentFunction · 0.85

Tested by

no test coverage detected