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

Function didError

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

Source from the content-addressed store, hash-verified

952}
953
954void didError(void *arg, err_t err)
955{
956 xsSocket xss = arg;
957
958 tcp_recv(xss->skt, NULL);
959 tcp_sent(xss->skt, NULL);
960 tcp_err(xss->skt, NULL);
961 xss->skt = NULL; // "pcb is already freed when this callback is called"
962 socketSetPending(xss, kPendingError);
963
964 if (xss->connecting) {
965 xss->connecting = 0;
966 socketDownUseCount(xss->the, xss);
967 }
968}
969
970err_t didConnect(void * arg, struct tcp_pcb * tpcb, err_t err)
971{

Callers

nothing calls this directly

Calls 2

socketSetPendingFunction · 0.85
socketDownUseCountFunction · 0.70

Tested by

no test coverage detected