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

Function socketConnected

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

Source from the content-addressed store, hash-verified

379}
380
381void socketConnected(void *the, void *refcon, uint8_t *message, uint16_t messageLength)
382{
383 xsSocket xss = (xsSocket)refcon;
384
385 socketUpUseCount(the, xss);
386
387 xsBeginHost(the);
388 xsCall1(xss->obj, xsID_callback, xsInteger(kSocketMsgConnect));
389 xsEndHost(the);
390
391 socketDownUseCount(the, xss);
392}
393
394void socketDisconnected(void *the, void *refcon, uint8_t *message, uint16_t messageLength)
395{

Callers

nothing calls this directly

Calls 2

socketUpUseCountFunction · 0.70
socketDownUseCountFunction · 0.70

Tested by

no test coverage detected