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

Function socketError

modules/network/socket/qca4020/modSocket.c:457–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457void socketError(void *the, void *refcon, uint8_t *message, uint16_t messageLength)
458{
459 xsSocket xss = (xsSocket)refcon;
460 //int32_t err = qapi_errno(xss->skt);
461
462 socketUpUseCount(the, xss);
463
464 xsBeginHost(the);
465 xsCall1(xss->obj, xsID_callback, xsInteger(kSocketMsgError)); //@@ report the error value
466 xsEndHost(the);
467
468 socketDownUseCount(the, xss);
469}
470
471void listenerConnected(void *the, void *refcon, uint8_t *message, uint16_t messageLength)
472{

Callers

nothing calls this directly

Calls 2

socketUpUseCountFunction · 0.70
socketDownUseCountFunction · 0.70

Tested by

no test coverage detected