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

Function tcpTrigger

modules/io/socket/win/tcp.c:492–505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492void tcpTrigger(TCP tcp, uint8_t trigger)
493{
494 if (kTCPError & trigger)
495 tcp->error = 1;
496
497 trigger &= tcp->triggerable;
498 if (!trigger)
499 return;
500
501 if (!tcp->triggered)
502 tcpHold(tcp);
503
504 tcp->triggered |= trigger;
505}
506
507/*
508 Listener

Callers 4

xs_tcp_constructorFunction · 0.70
xs_tcp_readFunction · 0.70
xs_tcp_writeFunction · 0.70
tcpTaskFunction · 0.70

Calls 1

tcpHoldFunction · 0.70

Tested by

no test coverage detected