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

Function fxDisconnect

xs/tools/xst.c:1322–1336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1320}
1321
1322void fxDisconnect(txMachine* the)
1323{
1324#if mxWindows
1325 if (the->connection != INVALID_SOCKET) {
1326 closesocket(the->connection);
1327 the->connection = INVALID_SOCKET;
1328 }
1329 WSACleanup();
1330#else
1331 if (the->connection >= 0) {
1332 close(the->connection);
1333 the->connection = -1;
1334 }
1335#endif
1336}
1337
1338txBoolean fxIsConnected(txMachine* the)
1339{

Callers 3

xst.cFile · 0.70
fxReceiveFunction · 0.70
fxSendFunction · 0.70

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected