Package info.walnutstreet.vs.ps02

Source Code of info.walnutstreet.vs.ps02.Server

package info.walnutstreet.vs.ps02;



import info.walnutstreet.vs.ps02.model.remote.ChatServerModel;
import info.walnutstreet.vs.ps02.model.remote.interfaces.ChatServerModelInterface;

import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.security.NoSuchAlgorithmException;

/**
* @author Christoph Gostner, Romedius Weiss, Christian Bitschnau
* @version 0.1
*
*/
public class Server {

  /**
   * Main method.
   *
   * @param argv
   * @throws RemoteException
   * @throws NotBoundException
   * @throws NumberFormatException
   * @throws NoSuchAlgorithmException
   */
  public static void main(String[] argv) throws RemoteException, NotBoundException, NumberFormatException, NoSuchAlgorithmException {
    ChatServerModelInterface chatServerModel = new ChatServerModel(Integer.parseInt(argv[0]));
    chatServerModel.bind();
    System.out.println("Server start ...");
  }
}
TOP

Related Classes of info.walnutstreet.vs.ps02.Server

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.