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

Function removeTCPCallbacks

modules/io/socket/lwip/tcp.c:259–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void removeTCPCallbacks(TCP tcp)
260{
261 if (tcp->skt) {
262 tcp_recv(tcp->skt, NULL);
263 tcp_sent(tcp->skt, NULL);
264 tcp_err(tcp->skt, NULL);
265 }
266
267 tcp->triggerable &= ~kTCPWritable;
268}
269
270void doClose(xsMachine *the, xsSlot *instance)
271{

Callers 4

xs_tcp_destructorFunction · 0.70
doCloseFunction · 0.70
tcpErrorFunction · 0.70
tcpReceiveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected