Skip to content

Instantly share code, notes, and snippets.

@korkmazkadir
Created February 12, 2018 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korkmazkadir/ce3ff35298dcda13e56460087eb79aec to your computer and use it in GitHub Desktop.
Save korkmazkadir/ce3ff35298dcda13e56460087eb79aec to your computer and use it in GitHub Desktop.
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