| 1213 | } |
| 1214 | |
| 1215 | void 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 | |
| 1231 | txBoolean fxIsConnected(txMachine* the) |
| 1232 | { |