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

Function fxIsReadable

xs/platforms/mac_xs.c:212–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212txBoolean fxIsReadable(txMachine* the)
213{
214 int count;
215 return the->connection && (ioctl(CFSocketGetNative(the->connection), FIONREAD, &count) == 0) && (count > 0);
216}
217
218void fxReceive(txMachine* the)
219{

Callers 1

fxReadableCallbackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected