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 ...");
}
}