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

Function tcpTrigger

modules/io/socket/lin/tcp.c:499–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499void tcpTrigger(TCP tcp, uint8_t trigger)
500{
501 if (kTCPError & trigger)
502 tcp->error = 1;
503
504 trigger &= tcp->triggerable;
505 if (!trigger)
506 return;
507
508 if (!tcp->triggered)
509 tcpHold(tcp);
510
511 tcp->triggered |= trigger;
512}
513
514/*
515 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