public void stop(boolean sayToServer) { // connected = false; messages.createLogoutMessage(); // if(sayToServer) // sendMessage("", Server.CLIENT_DISCONNECT); gui.showLoginView(); connection.stop(); // connection = null; // Log.printLogs( // ); }
public boolean isServer() { return connection.isServer(); }
public void recieveMessage(String message) { // lastContact = System.currentTimeMillis(); connection.setLastContact(System.currentTimeMillis()); gui.appendText(message, true); }