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

Function fxSend

xs/tools/xsl.c:1267–1283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1265}
1266
1267void fxSend(txMachine* the, txBoolean more)
1268{
1269 if (the->connection != mxNoSocket) {
1270#if mxWindows
1271 if (send(the->connection, the->echoBuffer, the->echoOffset, 0) <= 0)
1272 fxDisconnect(the);
1273#else
1274 again:
1275 if (write(the->connection, the->echoBuffer, the->echoOffset) <= 0) {
1276 if (errno == EINTR)
1277 goto again;
1278 else
1279 fxDisconnect(the);
1280 }
1281#endif
1282 }
1283}
1284
1285#endif /* mxDebug */
1286

Callers

nothing calls this directly

Calls 3

sendFunction · 0.85
fxDisconnectFunction · 0.70
writeFunction · 0.50

Tested by

no test coverage detected