examples.chat
Interface Chat

All Known Implementing Classes:
GuiClientImpl

public interface Chat

The chat Server interface.

Author:
Christophe Demarey.

Method Summary
 void connect()
          Initialize a connection with the chat server.
 void disconnect()
          Leave the chat.
 java.lang.String getMessages()
          Get all messages received by the chat server.
 void sendMessage(java.lang.String pseudo, java.lang.String msg)
          Send a message to the chat server
 

Method Detail

connect

void connect()
Initialize a connection with the chat server.


disconnect

void disconnect()
Leave the chat.


getMessages

java.lang.String getMessages()
Get all messages received by the chat server.

Returns:
The list of received messages.

sendMessage

void sendMessage(java.lang.String pseudo,
                 java.lang.String msg)
Send a message to the chat server

Parameters:
pseudo - - The pseudo of the sender.
msg - - The message to send.


Copyright © 2010 OW2 Consortium. All Rights Reserved.