MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / tcpSent

Function tcpSent

modules/io/socket/zephyr/tcp.c:571–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571void tcpSent(struct net_context *context, int status, void *user_data)
572{
573 TCPWrite tw = user_data;
574 if (!tw) return;
575 TCP tcp = tw->tcp;
576 tcp->sendBytesInFlight -= tw->byteLength;
577 c_free(tw);
578
579 tcpTrigger(tcp, (status < 0) ? kTCPError : kTCPWritable);
580}
581
582void tcpTrigger(TCP tcp, uint8_t trigger)
583{

Callers

nothing calls this directly

Calls 1

tcpTriggerFunction · 0.70

Tested by

no test coverage detected