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

Function didSend

modules/network/socket/lwip/modSocket.c:1042–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040}
1041
1042err_t didSend(void *arg, struct tcp_pcb *pcb, u16_t len)
1043{
1044 xsSocket xss = arg;
1045
1046 modInstrumentationAdjust(NetworkBytesWritten, len);
1047
1048 xss->outstandingSent -= len;
1049 if (0 == xss->outstandingSent)
1050 socketSetPending(xss, kPendingSent);
1051
1052 return ERR_OK;
1053}
1054
1055void didReceiveUDP(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *remoteAddr, u16_t remotePort)
1056{

Callers

nothing calls this directly

Calls 1

socketSetPendingFunction · 0.85

Tested by

no test coverage detected