Package org.javatari.atari.network

Examples of org.javatari.atari.network.RemoteReceiver


    plugConsole(serverConsole);
    return serverConsole;
  }
 
  protected ClientConsole buildAndPlugClientConsole() {
    RemoteReceiver remoteReceiver = new RemoteReceiver();
    clientConsole = new ClientConsole(remoteReceiver);
    plugConsole(clientConsole);
    return clientConsole;
 
View Full Code Here


      room.morphToClientMode();
      SwingHelper.edtInvokeLater(new Runnable() { @Override public void run() {
        setupConnectionStatusListeners();
        String serverAddress = "";
        try {
          RemoteReceiver receiver = room.clientCurrentConsole().remoteReceiver();
          serverAddress = clientServerAddressTf.getText().trim();
          receiver.connect(serverAddress);
          closeAction();
        } catch (Exception ex) {
          JOptionPane.showMessageDialog(null, "Connection failed: " + serverAddress + "\n" + ex, "javatari P2 Client", JOptionPane.ERROR_MESSAGE);
          room.morphToStandaloneMode();
        }
        refreshMultiplayer();
        gray(false);
      }});
    } else // Will try to DISCONNECT
      try {
        RemoteReceiver receiver = room.clientCurrentConsole().remoteReceiver();
        receiver.disconnect();
        room.morphToStandaloneMode();
      } catch (Exception ex) {
        JOptionPane.showMessageDialog(null, "Error disconnecting from Server:\n" + ex, "javatari P2 Client", JOptionPane.ERROR_MESSAGE);
      }
      refreshMultiplayer();
View Full Code Here

TOP

Related Classes of org.javatari.atari.network.RemoteReceiver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.