Last active
February 11, 2018 16:10
-
-
Save korkmazkadir/20eda2adc2bc32f4401af33e40520a17 to your computer and use it in GitHub Desktop.
Chat Server Interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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