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

Function fxSend

xs/tools/xst.c:1374–1390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1372}
1373
1374void fxSend(txMachine* the, txBoolean more)
1375{
1376 if (the->connection != mxNoSocket) {
1377#if mxWindows
1378 if (send(the->connection, the->echoBuffer, the->echoOffset, 0) <= 0)
1379 fxDisconnect(the);
1380#else
1381 again:
1382 if (write(the->connection, the->echoBuffer, the->echoOffset) <= 0) {
1383 if (errno == EINTR)
1384 goto again;
1385 else
1386 fxDisconnect(the);
1387 }
1388#endif
1389 }
1390}
1391
1392#endif /* mxDebug */
1393

Callers

nothing calls this directly

Calls 3

sendFunction · 0.85
fxDisconnectFunction · 0.70
writeFunction · 0.50

Tested by

no test coverage detected