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

Function fxReadNetworkAux

tools/serial2xsbug/serial2xsbug_win.c:244–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244DWORD fxReadNetworkAux(txSerialMachine machine)
245{
246 txSerialTool self = machine->tool;
247 DWORD size, flags = 0;
248 if (WSARecv(machine->networkConnection, &machine->networkBuf, 1, &size, &flags, &(machine->networkOverlapped), NULL)) {
249 DWORD error = WSAGetLastError();
250 if (error != WSA_IO_PENDING) mxThrowError(error);
251 return 0;
252 }
253 return size;
254}
255
256void fxReadSerial(txSerialTool self, DWORD size)
257{

Callers 2

fxOpenNetworkFunction · 0.85
fxReadNetworkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected