Server Remote Interface
The collaboration server allows users to connect to the server. It keeps a list of users. When any user posts a message, it distributes it to all the other users.
public interface ChatServer extends Remote{ //pass client object to server with id name public void register(Chat c, String name) throws RE public void postMessage ( Message m) throws RE public String[] listChatters ( ) throws RE}
Note that RE is an abbreviation for RemoteException.
The Message class must implement Serializable.