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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user