Added deployment options for the client

- Client can be downloaded under www.cato447.tech
- Added support for numbers notated in "," and "." form
This commit is contained in:
2021-03-23 22:27:14 +01:00
parent e96708b64e
commit 43361897ff
6 changed files with 21 additions and 5 deletions

View File

@@ -55,14 +55,12 @@ public class Client {
}
public void sendToServer(String message) {
int availableBits = 0;
try {
out.writeUTF(message);
out.flush();
boolean success = in.readBoolean();
clientLogger.printLog(String.format("Sent the message: %s", message), serverName, success, LogType.Output);
if(in.available() > 0){
availableBits = in.available();
throw new Exception("More than just a boolean sent");
}
} catch (IOException e) {