net.sf.magicproject.network
Class MChat

java.lang.Object
  extended by net.sf.magicproject.network.MChat

public class MChat
extends java.lang.Object

This chat is a thread looking for a chat data in the bigpipe Display discussion is : $user - $message When a null length message is sent, that would say "disconnection" since user can't send a null length message. So if user want to send a null length message nothing is sent. When disconnection is dectected, a message like " **disconnection **" is printed into the history text area.

Since:
0.3
Author:
Fabrice Daugan

Constructor Summary
MChat()
           
 
Method Summary
 void newMessage(java.io.InputStream in)
          To read a message from the specified input stream
 void sendMessage(java.lang.String message)
          send a specified message to opponent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MChat

public MChat()
Method Detail

sendMessage

public void sendMessage(java.lang.String message)
send a specified message to opponent

Parameters:
message - is the specified message to send

newMessage

public void newMessage(java.io.InputStream in)
                throws java.io.IOException
To read a message from the specified input stream

Parameters:
in - the input stream
Throws:
java.io.IOException


Copyright © 2003-2007 Magic-Project. All Rights Reserved.