|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChatClient
Specification of a chat client. This makes the interface between a
ClientGUI
and ChatClient
and let the ClientGUI
being independant on the ChatClient
implementation. A chat client
should be able to connect/disconnect from the server, send message
and dispose all the ressources that are associated to it.
Method Summary | |
---|---|
void |
close()
Method called when the client wants to release all the ressources used by the instance of this IChatClient . |
boolean |
connect(String username)
Method called by when the client want to connect to a server. |
boolean |
disconnect(String username)
Method called when the client wants to disconnect from the server. |
void |
sendMessage(IMessage msg)
Method called when the client wants to send a message. |
Method Detail |
---|
boolean connect(String username)
username
- The username of the client.
boolean disconnect(String username)
username
- The username of the client.
void sendMessage(IMessage msg)
msg
- The message to be sent as a IMessage.void close()
IChatClient
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |