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

Function didConnect

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

Source from the content-addressed store, hash-verified

968}
969
970err_t didConnect(void * arg, struct tcp_pcb * tpcb, err_t err)
971{
972 xsSocket xss = arg;
973
974 if ((ERR_OK != err) || !xss->connecting)
975 socketSetPending(xss, kPendingError);
976 else
977 socketSetPending(xss, kPendingConnect);
978
979 if (xss->connecting) {
980 xss->connecting = 0;
981 socketDownUseCount(xss->the, xss);
982 }
983
984 return ERR_OK;
985}
986
987err_t didReceive(void * arg, struct tcp_pcb * pcb, struct pbuf * p, err_t err)
988{

Callers

nothing calls this directly

Calls 2

socketSetPendingFunction · 0.85
socketDownUseCountFunction · 0.70

Tested by

no test coverage detected