FileDocCategorySizeDatePackage
RMIChatTest.javaAPI DocExample650Tue Mar 25 23:58:40 GMT 1997dcj.util.Collaborative

RMIChatTest

public class RMIChatTest extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

    // Install a security manager
    System.setSecurityManager(new RMISecurityManager());
    try {
      String name = argv[0];
      String host = argv[1];
      String mname = argv[2];
      RMIChatClient client = new RMIChatClient(name, host, mname);
      while (true) {}
    }
    catch (Exception e) {
      System.out.println("Caught exception:");
      e.printStackTrace();
    }