chat rmi server/client and peer2peer
This commit is contained in:
17
rmi_chat_p2p/ClientInterface.java
Normal file
17
rmi_chat_p2p/ClientInterface.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package rmi_chat_p2p;
|
||||
|
||||
import java.rmi.Remote;
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Created by Giovanni on 09/12/2014.
|
||||
*/
|
||||
public interface ClientInterface extends Remote {
|
||||
|
||||
|
||||
void speak (Message m) throws RemoteException;
|
||||
void register (ClientInterface c, String n) throws RemoteException;
|
||||
void unregister (ClientInterface c, String n) throws RemoteException;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user