Package pdp.scrabble.multiplayer

Examples of pdp.scrabble.multiplayer.Server.disconnect()


      System.out.println("Can't connect");
  }

  //Disconnect client
  try {
      server.disconnect(0);
      System.out.println("Disconnecting client");
  }
  catch (RemoteException ex) {
      fail("RemoteException was not expected");
  }
View Full Code Here


  //50 connections/disconnections
  System.out.println("50 Connections/disconnections...");
  for (int i = 0; i < 50; i++) {
      try {
    client.connect(null, "localhost", "1099", "test" + i, LANG);
    server.disconnect(0);
      }
      catch (RemoteException ex) {
    fail("RemoteException was not expected");
      }
      catch (NotBoundException ex) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.