-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMud.java
More file actions
27 lines (26 loc) · 1.26 KB
/
Mud.java
File metadata and controls
27 lines (26 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package UP12;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
public class Mud {
static String mudPrefix = "localhost";
public interface MailServerInterface extends Remote {
String getPersons()throws RemoteException;
MailClientInterface getPerson(String name) throws RemoteException;
void delClient(MailClientInterface current) throws RemoteException;
boolean addPerson(MailClientInterface current) throws RemoteException;
void sendMessage(MailClientInterface name,String message) throws RemoteException;
boolean printPerson(MailClientInterface current) throws RemoteException;
boolean getStatus(MailClientInterface curname) throws RemoteException;
}
public interface MailClientInterface extends Remote {
String showMessage() throws RemoteException;
void talk(String text)throws RemoteException;
String getName() throws RemoteException;
void cleanLetters() throws RemoteException;
public String print() throws RemoteException;
ArrayList<String> getLetters() throws RemoteException;
void addLetter(String letter) throws RemoteException;
void sendMessage(MailClientInterface name,String message) throws RemoteException;
}
}