|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChatParticipantInterface
Interface for participants (server and clients) in simple chat application. This interface describes functionality needed/useful in both server and clients. Every participant has a list of clients currently participating in the chat.
Method Summary | |
---|---|
void |
addClient(ChatClientInterface c)
Adds client. |
void |
broadcast(java.lang.String message)
Sends message to all clients. |
void |
display(java.lang.String message)
Displays message. |
void |
removeClient(ChatClientInterface c)
Removes client. |
Method Detail |
---|
void addClient(ChatClientInterface c) throws java.rmi.RemoteException
c
- client to add
java.rmi.RemoteException
void removeClient(ChatClientInterface c) throws java.rmi.RemoteException
c
- client to remove
java.rmi.RemoteException
void broadcast(java.lang.String message) throws java.rmi.RemoteException
message
- message to send to all
java.rmi.RemoteException
void display(java.lang.String message) throws java.rmi.RemoteException
message
- message to display
java.rmi.RemoteException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |