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

Function fxDisconnect

xs/tools/xsl.c:1215–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1213}
1214
1215void fxDisconnect(txMachine* the)
1216{
1217#if mxWindows
1218 if (the->connection != INVALID_SOCKET) {
1219 closesocket(the->connection);
1220 the->connection = INVALID_SOCKET;
1221 }
1222 WSACleanup();
1223#else
1224 if (the->connection >= 0) {
1225 close(the->connection);
1226 the->connection = -1;
1227 }
1228#endif
1229}
1230
1231txBoolean fxIsConnected(txMachine* the)
1232{

Callers 3

xsl.cFile · 0.70
fxReceiveFunction · 0.70
fxSendFunction · 0.70

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected