import java.rmi.Remote; import java.rmi.RemoteException; public interface ChatServer extends Remote { /* Connect to chat */ public void connect (String name, ChatClient client) throws RemoteException; /* Sends the given text to all clients */ public void send (String name, String text) throws RemoteException; /* Quit from the chat */ public void disconnect (String name)throws RemoteException; }