ChatServer.html

Warning: This file has been marked up for HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Feb 08 14:56:13 MST 2000 -->
<TITLE>
Chat Snapin Documentation: Class  ChatServer
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/novell/Chat/ChatRoomUserTable.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/novell/Chat/ChatServiceSnapin.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ChatServer.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.novell.Chat</FONT>
<BR>
Class  ChatServer</H2>
<PRE>
java.lang.Object
  |
  +--<B>com.novell.Chat.ChatServer</B>
</PRE>
<HR>
<DL>
<DT>public class <B>ChatServer</B><DT>extends java.lang.Object<DT>implements java.lang.Runnable, <A HREF="../../../com/novell/Chat/ChatConnection.html">ChatConnection</A>, <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>

<P>
Opens a server socket and listens for requests from 
 clients on a static port. When a connection is received it creates a
 Communications object to handle further communication with that
 client.  Whenever a message is received from a client it is relayed 
 to all other clients that it is connected with.
<P>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->


<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#ChatServer(com.novell.Chat.ChatStatusListener, int, com.novell.Chat.ChatUser, int)">ChatServer</A></B>(<A HREF="../../../com/novell/Chat/ChatStatusListener.html">ChatStatusListener</A>&nbsp;listener,
           int&nbsp;svrPort,
           <A HREF="../../../com/novell/Chat/ChatUser.html">ChatUser</A>&nbsp;serverInfo,
           int&nbsp;startColor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens the server socket on the static port and listens for connections.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#acceptConnection(com.novell.Chat.Communications)">acceptConnection</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#addClient(com.novell.Chat.Communications)">addClient</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;client)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a user to the connection table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#addConnectedUser(com.novell.Chat.Communications)">addConnectedUser</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;client)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a connected user to the ChatRoom object's user list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#changeServer(java.lang.String)">changeServer</A></B>(java.lang.String&nbsp;fullName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Raised when a client must change which server it is connected to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ChatConnection Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#comError(com.novell.Chat.Communications, int, java.lang.String)">comError</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm,
         int&nbsp;errorCode,
         java.lang.String&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#comStatus(com.novell.Chat.Communications, java.lang.String)">comStatus</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm,
          java.lang.String&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#connectionEstablished(com.novell.Chat.Communications)">connectionEstablished</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#connectionUpdate(com.novell.Chat.Communications)">connectionUpdate</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is called when a user enters or leaves a chat room.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#disconnect()">disconnect</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ChatConnection Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#disconnect(java.lang.String)">disconnect</A></B>(java.lang.String&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#disconnected(com.novell.Chat.Communications)">disconnected</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#echoData(java.lang.String)">echoData</A></B>(java.lang.String&nbsp;data)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#getConnectionName()">getConnectionName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ChatConnection Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#getKey()">getKey</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ChatConnection Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;com.novell.Chat.ObjectEntry</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#getObjectEntry()">getObjectEntry</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ChatConnection Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#getOwnerName()">getOwnerName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#getPort()">getPort</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the port the server is listening at.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#getType()">getType</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ChatConnection Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#isConnected()">isConnected</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used to test if there is a valid connection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#listen(boolean)">listen</A></B>(boolean&nbsp;listen)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts or stops the server from listening for connections.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#messageReceived(int, java.lang.String, java.lang.String)">messageReceived</A></B>(int&nbsp;colorCode,
                java.lang.String&nbsp;name,
                java.lang.String&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#reConnectionEstablished(com.novell.Chat.Communications, java.lang.String)">reConnectionEstablished</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm,
                        java.lang.String&nbsp;oldKey)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#relayMessage(int, java.lang.String, java.lang.String)">relayMessage</A></B>(int&nbsp;colorCode,
             java.lang.String&nbsp;userName,
             java.lang.String&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enumerates over all clients in the client list and relays the messages.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#removeClient(java.lang.String)">removeClient</A></B>(java.lang.String&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the client from the client list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#removeConnectedUser(com.novell.Chat.Communications)">removeConnectedUser</A></B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;client)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the user from the ChatRoom object's user list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#run()">run</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the listenThread is started.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#sendMessage(java.lang.String)">sendMessage</A></B>(java.lang.String&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ChatConnection Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#sendStatusMessage(java.lang.String)">sendStatusMessage</A></B>(java.lang.String&nbsp;message)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a message from this user to all of the listening clients.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#sendTansferCommand()">sendTansferCommand</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends the command to transfer servers to all clients.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#sendTransferMessage(java.lang.String)">sendTransferMessage</A></B>(java.lang.String&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a transfer request message to the client with the given key.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#serverTransferRequest(int)">serverTransferRequest</A></B>(int&nbsp;color)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#serverTransferResponse(boolean)">serverTransferResponse</A></B>(boolean&nbsp;accepted)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Implementation

 Raised when a response is received to transfer the server.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#showChatDialog()">showChatDialog</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Displays the chatDialog is this is not a Chat Room object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ChatServer.html#verifyConnection(java.lang.String, java.lang.String)">verifyConnection</A></B>(java.lang.String&nbsp;fullName,
                 java.lang.String&nbsp;ipAddress)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ComListener Interface Implementation.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="ChatServer(com.novell.Chat.ChatStatusListener, int, com.novell.Chat.ChatUser, int)"><!-- --></A><H3>
ChatServer</H3>
<PRE>
public <B>ChatServer</B>(<A HREF="../../../com/novell/Chat/ChatStatusListener.html">ChatStatusListener</A>&nbsp;listener,
                  int&nbsp;svrPort,
                  <A HREF="../../../com/novell/Chat/ChatUser.html">ChatUser</A>&nbsp;serverInfo,
                  int&nbsp;startColor)</PRE>
<DL>
<DD>Opens the server socket on the static port and listens for connections.
 When a new connection is opened it then create a new Communications object.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - The ChatStatusListener that receives the Chat information from this class.<DD><CODE>svrPort</CODE> - The port on which this server will listen for connections.<DD><CODE>serverInfo</CODE> - Information about this server.<DD><CODE>startColor</CODE> - The color to start this user at in the ChatDialog.</DL>
</DD>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="getPort()"><!-- --></A><H3>
getPort</H3>
<PRE>
public int <B>getPort</B>()</PRE>
<DL>
<DD>Gets the port the server is listening at.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The port number.</DL>
</DD>
</DL>
<HR>

<A NAME="getType()"><!-- --></A><H3>
getType</H3>
<PRE>
public java.lang.String <B>getType</B>()</PRE>
<DL>
<DD>ChatConnection Interface Implementation.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ChatConnection.html#getType()">getType</A> in interface <A HREF="../../../com/novell/Chat/ChatConnection.html">ChatConnection</A></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The type of server this is.</DL>
</DD>
</DL>
<HR>

<A NAME="getObjectEntry()"><!-- --></A><H3>
getObjectEntry</H3>
<PRE>
public com.novell.Chat.ObjectEntry <B>getObjectEntry</B>()</PRE>
<DL>
<DD>ChatConnection Interface Implementation.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ChatConnection.html#getObjectEntry()">getObjectEntry</A> in interface <A HREF="../../../com/novell/Chat/ChatConnection.html">ChatConnection</A></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The ObjectEntry this server is associated with.</DL>
</DD>
</DL>
<HR>

<A NAME="getKey()"><!-- --></A><H3>
getKey</H3>
<PRE>
public java.lang.String <B>getKey</B>()</PRE>
<DL>
<DD>ChatConnection Interface Implementation.

 This key can be used as a unique reference number to this connection.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ChatConnection.html#getKey()">getKey</A> in interface <A HREF="../../../com/novell/Chat/ChatConnection.html">ChatConnection</A></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>A string in the form of IP:Port.  A '*' is appended to the key
         as a flag for server's used for user objects.</DL>
</DD>
</DL>
<HR>

<A NAME="listen(boolean)"><!-- --></A><H3>
listen</H3>
<PRE>
public void <B>listen</B>(boolean&nbsp;listen)</PRE>
<DL>
<DD>Starts or stops the server from listening for connections.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listen</CODE> - When true, it listens, when false, it stops.</DL>
</DD>
</DL>
<HR>

<A NAME="sendTransferMessage(java.lang.String)"><!-- --></A><H3>
sendTransferMessage</H3>
<PRE>
public boolean <B>sendTransferMessage</B>(java.lang.String&nbsp;key)</PRE>
<DL>
<DD>Sends a transfer request message to the client with the given key.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The key of the client to transfer the server to.<DT><B>Returns:</B><DD>True if successfull.</DL>
</DD>
</DL>
<HR>

<A NAME="sendTansferCommand()"><!-- --></A><H3>
sendTansferCommand</H3>
<PRE>
public void <B>sendTansferCommand</B>()</PRE>
<DL>
<DD>Sends the command to transfer servers to all clients.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="run()"><!-- --></A><H3>
run</H3>
<PRE>
public void <B>run</B>()</PRE>
<DL>
<DD>Called when the listenThread is started. Here the server listens for connections.
 When a connection is made a Communications object is created to monitor the 
 connection.<DD><DL>
<DT><B>Specified by: </B><DD>run in interface java.lang.Runnable</DL>
</DD>
</DL>
<HR>

<A NAME="sendMessage(java.lang.String)"><!-- --></A><H3>
sendMessage</H3>
<PRE>
public void <B>sendMessage</B>(java.lang.String&nbsp;message)</PRE>
<DL>
<DD>ChatConnection Interface Implementation.

 Sends a message from this user to all of the listening clients.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ChatConnection.html#sendMessage(java.lang.String)">sendMessage</A> in interface <A HREF="../../../com/novell/Chat/ChatConnection.html">ChatConnection</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to send.</DL>
</DD>
</DL>
<HR>

<A NAME="sendStatusMessage(java.lang.String)"><!-- --></A><H3>
sendStatusMessage</H3>
<PRE>
public void <B>sendStatusMessage</B>(java.lang.String&nbsp;message)</PRE>
<DL>
<DD>Sends a message from this user to all of the listening clients.
 This message is meant to be a message informing the other users of the status
 of the chat room.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to send.</DL>
</DD>
</DL>
<HR>

<A NAME="relayMessage(int, java.lang.String, java.lang.String)"><!-- --></A><H3>
relayMessage</H3>
<PRE>
public void <B>relayMessage</B>(int&nbsp;colorCode,
                         java.lang.String&nbsp;userName,
                         java.lang.String&nbsp;message)</PRE>
<DL>
<DD>Enumerates over all clients in the client list and relays the messages.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>colorCode</CODE> - The color to print the name of this user in.<DD><CODE>userName</CODE> - The name of the user sending the message.<DD><CODE>message</CODE> - Message as byte array</DL>
</DD>
</DL>
<HR>

<A NAME="echoData(java.lang.String)"><!-- --></A><H3>
echoData</H3>
<PRE>
public boolean <B>echoData</B>(java.lang.String&nbsp;data)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Raised when a server should echo a message to the other clients.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#echoData(java.lang.String)">echoData</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - The message to echo.</DL>
</DD>
</DL>
<HR>

<A NAME="showChatDialog()"><!-- --></A><H3>
showChatDialog</H3>
<PRE>
public void <B>showChatDialog</B>()</PRE>
<DL>
<DD>Displays the chatDialog is this is not a Chat Room object.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getConnectionName()"><!-- --></A><H3>
getConnectionName</H3>
<PRE>
public java.lang.String <B>getConnectionName</B>()</PRE>
<DL>
<DD>ChatConnection Interface Implementation.

 Gets the name of the person or chat room this session is with.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ChatConnection.html#getConnectionName()">getConnectionName</A> in interface <A HREF="../../../com/novell/Chat/ChatConnection.html">ChatConnection</A></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The name to place in the title.</DL>
</DD>
</DL>
<HR>

<A NAME="addClient(com.novell.Chat.Communications)"><!-- --></A><H3>
addClient</H3>
<PRE>
public void <B>addClient</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;client)</PRE>
<DL>
<DD>Adds a user to the connection table.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>client</CODE> - The client to add.</DL>
</DD>
</DL>
<HR>

<A NAME="removeClient(java.lang.String)"><!-- --></A><H3>
removeClient</H3>
<PRE>
public void <B>removeClient</B>(java.lang.String&nbsp;key)</PRE>
<DL>
<DD>Removes the client from the client list.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - Key used to reference the client. (IP:Port)</DL>
</DD>
</DL>
<HR>

<A NAME="addConnectedUser(com.novell.Chat.Communications)"><!-- --></A><H3>
addConnectedUser</H3>
<PRE>
public void <B>addConnectedUser</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;client)</PRE>
<DL>
<DD>Adds a connected user to the ChatRoom object's user list.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>client</CODE> - The Communications object associated with this client to add.</DL>
</DD>
</DL>
<HR>

<A NAME="removeConnectedUser(com.novell.Chat.Communications)"><!-- --></A><H3>
removeConnectedUser</H3>
<PRE>
public void <B>removeConnectedUser</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;client)</PRE>
<DL>
<DD>Removes the user from the ChatRoom object's user list.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>client</CODE> - The client to remove.</DL>
</DD>
</DL>
<HR>

<A NAME="disconnect()"><!-- --></A><H3>
disconnect</H3>
<PRE>
public void <B>disconnect</B>()</PRE>
<DL>
<DD>ChatConnection Interface Implementation.
 ComListener Interface Implementation.

 Disconnects the server from all clients.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ChatConnection.html#disconnect()">disconnect</A> in interface <A HREF="../../../com/novell/Chat/ChatConnection.html">ChatConnection</A></DL>
</DD>
</DL>
<HR>

<A NAME="disconnect(java.lang.String)"><!-- --></A><H3>
disconnect</H3>
<PRE>
public void <B>disconnect</B>(java.lang.String&nbsp;key)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Disconnects a specific client.
 Used by the ChatRoomPageSnapin.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#disconnect(java.lang.String)">disconnect</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - Key used to reference the client. (IP:Port)</DL>
</DD>
</DL>
<HR>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public void <B>close</B>()</PRE>
<DL>
<DD>ChatConnection Interface Implementation.
 ComListener Interface Implementation.

 Closes the ServerSocket.
 This should be called on shut down.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ChatConnection.html#close()">close</A> in interface <A HREF="../../../com/novell/Chat/ChatConnection.html">ChatConnection</A></DL>
</DD>
</DL>
<HR>

<A NAME="isConnected()"><!-- --></A><H3>
isConnected</H3>
<PRE>
public boolean <B>isConnected</B>()</PRE>
<DL>
<DD>Used to test if there is a valid connection.  When the client
 list size is less than zero, then no connections exist.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>True if there is a connection.</DL>
</DD>
</DL>
<HR>

<A NAME="messageReceived(int, java.lang.String, java.lang.String)"><!-- --></A><H3>
messageReceived</H3>
<PRE>
public void <B>messageReceived</B>(int&nbsp;colorCode,
                            java.lang.String&nbsp;name,
                            java.lang.String&nbsp;message)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Called when a message is received.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#messageReceived(int, java.lang.String, java.lang.String)">messageReceived</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>colorCode</CODE> - The code of the color to use for the name.<DD><CODE>name</CODE> - The name of the user who sent the message.<DD><CODE>message</CODE> - The message received.</DL>
</DD>
</DL>
<HR>

<A NAME="reConnectionEstablished(com.novell.Chat.Communications, java.lang.String)"><!-- --></A><H3>
reConnectionEstablished</H3>
<PRE>
public void <B>reConnectionEstablished</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm,
                                    java.lang.String&nbsp;oldKey)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Called when a valid connection has been established. 
 Once this event is raised, you can assume that the connection
 is valid and has been approved by both sides.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#reConnectionEstablished(com.novell.Chat.Communications, java.lang.String)">reConnectionEstablished</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comm</CODE> - Reference to the Communications object that is handling the
             the connection.<DD><CODE>oldKey</CODE> - The old key of the client connecting.</DL>
</DD>
</DL>
<HR>

<A NAME="connectionEstablished(com.novell.Chat.Communications)"><!-- --></A><H3>
connectionEstablished</H3>
<PRE>
public void <B>connectionEstablished</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Called when a valid connection has been established. 
 Once this event is raised, you can assume that the connection
 is valid and has been approved by both sides.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#connectionEstablished(com.novell.Chat.Communications)">connectionEstablished</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comm</CODE> - Reference to the Communications object that is handling the
             the connection.</DL>
</DD>
</DL>
<HR>

<A NAME="verifyConnection(java.lang.String, java.lang.String)"><!-- --></A><H3>
verifyConnection</H3>
<PRE>
public boolean <B>verifyConnection</B>(java.lang.String&nbsp;fullName,
                                java.lang.String&nbsp;ipAddress)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Requests the listener to verify the connection by checking the 
 user's full name against the ipAddress.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#verifyConnection(java.lang.String, java.lang.String)">verifyConnection</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fullName</CODE> - The fullName of the user to check.<DD><CODE>ipAddress</CODE> - The supposed IP Address of the user.<DT><B>Returns:</B><DD>True if it verifies correctly.</DL>
</DD>
</DL>
<HR>

<A NAME="acceptConnection(com.novell.Chat.Communications)"><!-- --></A><H3>
acceptConnection</H3>
<PRE>
public int <B>acceptConnection</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Asks the listener if it accepts or rejects the connection.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#acceptConnection(com.novell.Chat.Communications)">acceptConnection</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comm</CODE> - Reference to the connection.<DT><B>Returns:</B><DD>True if it accepts.</DL>
</DD>
</DL>
<HR>

<A NAME="disconnected(com.novell.Chat.Communications)"><!-- --></A><H3>
disconnected</H3>
<PRE>
public void <B>disconnected</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Called when the given connection is lost.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#disconnected(com.novell.Chat.Communications)">disconnected</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comm</CODE> - Reference to the connection.</DL>
</DD>
</DL>
<HR>

<A NAME="comStatus(com.novell.Chat.Communications, java.lang.String)"><!-- --></A><H3>
comStatus</H3>
<PRE>
public void <B>comStatus</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm,
                      java.lang.String&nbsp;message)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Informs the listener of the current status of the connection.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#comStatus(com.novell.Chat.Communications, java.lang.String)">comStatus</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comm</CODE> - Reference to the connection.<DD><CODE>message</CODE> - The status message.</DL>
</DD>
</DL>
<HR>

<A NAME="comError(com.novell.Chat.Communications, int, java.lang.String)"><!-- --></A><H3>
comError</H3>
<PRE>
public void <B>comError</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm,
                     int&nbsp;errorCode,
                     java.lang.String&nbsp;message)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Informs the listener of errors that occur in the connection.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#comError(com.novell.Chat.Communications, int, java.lang.String)">comError</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comm</CODE> - Reference to the connection.<DD><CODE>errorCode</CODE> - The error code constant.<DD><CODE>message</CODE> - The error message.</DL>
</DD>
</DL>
<HR>

<A NAME="serverTransferResponse(boolean)"><!-- --></A><H3>
serverTransferResponse</H3>
<PRE>
public void <B>serverTransferResponse</B>(boolean&nbsp;accepted)</PRE>
<DL>
<DD>ComListener Implementation

 Raised when a response is received to transfer the server.
 Used only by Servers.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#serverTransferResponse(boolean)">serverTransferResponse</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>accepted</CODE> - True if the request was accepted.</DL>
</DD>
</DL>
<HR>

<A NAME="getOwnerName()"><!-- --></A><H3>
getOwnerName</H3>
<PRE>
public java.lang.String <B>getOwnerName</B>()</PRE>
<DL>
<DD>ComListener Interface Implementation.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#getOwnerName()">getOwnerName</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The owners name of the Chat Room.</DL>
</DD>
</DL>
<HR>

<A NAME="serverTransferRequest(int)"><!-- --></A><H3>
serverTransferRequest</H3>
<PRE>
public boolean <B>serverTransferRequest</B>(int&nbsp;color)</PRE>
<DL>
<DD>ComListener Interface Implementation.

 Not used<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#serverTransferRequest(int)">serverTransferRequest</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><B>Tags copied from interface: <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></B></DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>startColor</CODE> - The color to start giving to new users for their user name.<DT><B>Returns:</B><DD>True if successfull.</DL>
</DD>
</DL>
<HR>

<A NAME="changeServer(java.lang.String)"><!-- --></A><H3>
changeServer</H3>
<PRE>
public void <B>changeServer</B>(java.lang.String&nbsp;fullName)</PRE>
<DL>
<DD><B>Description copied from interface: <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></B></DD>
<DD>Raised when a client must change which server it is connected to.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#changeServer(java.lang.String)">changeServer</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><B>Tags copied from interface: <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></B></DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>roomFullName</CODE> - The fullname of the Chat Room.</DL>
</DD>
</DL>
<HR>

<A NAME="connectionUpdate(com.novell.Chat.Communications)"><!-- --></A><H3>
connectionUpdate</H3>
<PRE>
public void <B>connectionUpdate</B>(<A HREF="../../../com/novell/Chat/Communications.html">Communications</A>&nbsp;comm)</PRE>
<DL>
<DD><B>Description copied from interface: <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></B></DD>
<DD>This is called when a user enters or leaves a chat room.
 It is a request to update your user lists.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../com/novell/Chat/ComListener.html#connectionUpdate(com.novell.Chat.Communications)">connectionUpdate</A> in interface <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></DL>
</DD>
<DD><B>Tags copied from interface: <A HREF="../../../com/novell/Chat/ComListener.html">ComListener</A></B></DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comm</CODE> - Reference to the connection.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/novell/Chat/ChatRoomUserTable.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/novell/Chat/ChatServiceSnapin.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ChatServer.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>

</BODY>
</HTML>