| 1320 | } |
| 1321 | |
| 1322 | void 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 | |
| 1338 | txBoolean fxIsConnected(txMachine* the) |
| 1339 | { |