|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IServer
Interface of remote methods available on a remote Server.
| Method Summary | |
|---|---|
void |
addClient(String clientAddr,
String clientName)
Adds the client at the specified RMI address to the IServer's list of current participants. |
boolean |
isClient(IClient client)
Determines if the specified client is a current client of this server. |
void |
returnResults(Turn turn)
Returns the specified Turn to the IServer. |
void |
writeMsg(String msg)
Writes the specified message to the server. |
| Method Detail |
|---|
void addClient(String clientAddr,
String clientName)
throws RemoteException
clientAddr - RMI address of client to add.clientName - Name of the player at clientAddr.
RemoteException - If there is any problem with the RMI.
void returnResults(Turn turn)
throws RemoteException
turn - Turn to send to the IServer.
RemoteException - If there is any problem with the RMI.
void writeMsg(String msg)
throws RemoteException
msg - The message to write.
RemoteException - If there is any problem with the RMI.
boolean isClient(IClient client)
throws RemoteException
client - Client to check.
true) or not (false).
RemoteException - If there is any problem with the RMI.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||