Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Chat Client Interface
package simplechat.common;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
*
* @author Kadir Korkmaz
*/
public interface ChatClient extends Remote {
public String getName() throws RemoteException;
public void notifyLogin(String username) throws RemoteException;
public void notifyLogout(String username) throws RemoteException;
public void notifyMessage(String fromUsername, String message) throws RemoteException;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment