예제 #1
0
  public void stop(boolean sayToServer) {
    //		connected = false;

    messages.createLogoutMessage();

    //		if(sayToServer)
    //			sendMessage("", Server.CLIENT_DISCONNECT);

    gui.showLoginView();

    connection.stop();
    //		connection = null;
    //		Log.printLogs(
    //                                                     );
  }
예제 #2
0
 public boolean isServer() {
   return connection.isServer();
 }
예제 #3
0
 public void recieveMessage(String message) {
   //		lastContact = System.currentTimeMillis();
   connection.setLastContact(System.currentTimeMillis());
   gui.appendText(message, true);
 }