Skip to content

Instantly share code, notes, and snippets.

@korkmazkadir
Last active February 11, 2018 16:10
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/20eda2adc2bc32f4401af33e40520a17 to your computer and use it in GitHub Desktop.
Save korkmazkadir/20eda2adc2bc32f4401af33e40520a17 to your computer and use it in GitHub Desktop.
Chat Server Interface
package simplechat.common;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
*
* @author Kadir Korkmaz
*/
public interface ChatServer extends Remote {
public String[] registerClient(ChatClient client) throws RemoteException;
public void unregisterClient(ChatClient client) throws RemoteException;
public void sendMessage(ChatClient from, String to, String message) throws RemoteException;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment