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

Function fxIsReadable

xs/platforms/lin_xs.c:226–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226txBoolean fxIsReadable(txMachine* the)
227{
228 if (the->socket) {
229 gssize count = g_socket_receive(the->socket, the->debugBuffer, sizeof(the->debugBuffer) - 1, NULL, NULL);
230 if (count > 0) {
231 the->debugOffset = count;
232 return 1;
233 }
234 }
235 return 0;
236}
237
238void fxReceive(txMachine* the)
239{

Callers 1

fxReadableCallbackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected