ComListener.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:10 MST 2000 -->
<TITLE>
Chat Snapin Documentation: Interface  ComListener
</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/ChatStatusListener.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ComListener.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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&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>
Interface  ComListener</H2>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../com/novell/Chat/ChatClient.html">ChatClient</A>, <A HREF="../../../com/novell/Chat/ChatServer.html">ChatServer</A></DD>
</DL>
<HR>
<DL>
<DT>public interface <B>ComListener</B></DL>

<P>
Defines the events that are raised by the Communications class.
 Some of these events require return values.
<P>
<HR>

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


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


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


<!-- ========== 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/ComListener.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;Asks the listener if it accepts or rejects the 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/ComListener.html#changeServer(java.lang.String)">changeServer</A></B>(java.lang.String&nbsp;roomFullName)</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/ComListener.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called to stop the connection and close the socket.</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/ComListener.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;Informs the listener of errors that occur in the 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/ComListener.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;Informs the listener of the current status of the 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/ComListener.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;Called when a valid connection has been established.</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/ComListener.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/ComListener.html#disconnect()">disconnect</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called to stop the 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/ComListener.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;Called to stop the connection and close the socket with a specific client.</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/ComListener.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;Called when the given connection is lost.</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/ComListener.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;Raised when a server should echo a message to the other clients.</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/ComListener.html#getOwnerName()">getOwnerName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/ComListener.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;Called when a message is received.</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/ComListener.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;Called when a valid connection has been established.</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/ComListener.html#serverTransferRequest(int)">serverTransferRequest</A></B>(int&nbsp;startColor)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Raised when a request to transfer the server to this user to received.</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/ComListener.html#serverTransferResponse(boolean)">serverTransferResponse</A></B>(boolean&nbsp;accepted)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/novell/Chat/ComListener.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;Requests the listener to verify the connection by checking the 
 user's full name against the ipAddress.</TD>
</TR>
</TABLE>
&nbsp;
<P>

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


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


<!-- ============ 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="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>Called when a message is received.<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="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>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>Parameters:</B><DD><CODE>comm</CODE> - Reference to the Communications object that is handling the
             the connection.</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>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>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>Requests the listener to verify the connection by checking the 
 user's full name against the ipAddress.<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>Asks the listener if it accepts or rejects the connection.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comm</CODE> - Reference to the connection.<DT><B>Returns:</B><DD>-1 if it is to reject, >=0 for the color to use for the user name.</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>Called when the given connection is lost.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comm</CODE> - Reference to the connection.</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>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>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>Informs the listener of the current status of the connection.<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>Informs the listener of errors that occur in the connection.<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="serverTransferRequest(int)"><!-- --></A><H3>
serverTransferRequest</H3>
<PRE>
public boolean <B>serverTransferRequest</B>(int&nbsp;startColor)</PRE>
<DL>
<DD>Raised when a request to transfer the server to this user to received.
 Used only by Clients.<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="serverTransferResponse(boolean)"><!-- --></A><H3>
serverTransferResponse</H3>
<PRE>
public void <B>serverTransferResponse</B>(boolean&nbsp;accepted)</PRE>
<DL>
<DD>Raised when a response is received to transfer the server.
 Used only by Servers.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>accepted</CODE> - True if the request was accepted.</DL>
</DD>
</DL>
<HR>

<A NAME="changeServer(java.lang.String)"><!-- --></A><H3>
changeServer</H3>
<PRE>
public void <B>changeServer</B>(java.lang.String&nbsp;roomFullName)</PRE>
<DL>
<DD>Raised when a client must change which server it is connected to.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>roomFullName</CODE> - The fullname of the Chat Room.</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>Raised when a server should echo a message to the other clients.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>data</CODE> - The message to echo.</DL>
</DD>
</DL>
<HR>

<A NAME="disconnect()"><!-- --></A><H3>
disconnect</H3>
<PRE>
public void <B>disconnect</B>()</PRE>
<DL>
<DD>Called to stop the connection.</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>Called to stop the connection and close the socket with a specific client.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The (IP:Port) key of the client to disconnect.</DL>
</DD>
</DL>
<HR>

<A NAME="getOwnerName()"><!-- --></A><H3>
getOwnerName</H3>
<PRE>
public java.lang.String <B>getOwnerName</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The owners name of the Chat Room.</DL>
</DD>
</DL>
<HR>

<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
public void <B>close</B>()</PRE>
<DL>
<DD>Called to stop the connection and close the socket.</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/ChatStatusListener.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="ComListener.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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>

</BODY>
</HTML>