--- projects/cms/source/server/uk/org/iscream/cms/server/filter/TCPReader.java 2001/01/18 23:15:50 1.7 +++ projects/cms/source/server/uk/org/iscream/cms/server/filter/TCPReader.java 2001/01/28 05:34:38 1.8 @@ -14,12 +14,10 @@ import java.net.UnknownHostException; import uk.ac.ukc.iscream.util.*; /** - * A socket listener to listen for new hosts registering with the system. - * When a host makes a connection, the connecton is past to an instance - * of the HostInit class, which handles further communication. + * Reads TCP Heartbeats from the host applications. * * @author $Author: tdb $ - * @version $Id: TCPReader.java,v 1.7 2001/01/18 23:15:50 tdb Exp $ + * @version $Id: TCPReader.java,v 1.8 2001/01/28 05:34:38 tdb Exp $ */ class TCPReader extends Thread { @@ -28,18 +26,17 @@ class TCPReader extends Thread { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.7 $"; + public final String REVISION = "$Revision: 1.8 $"; //---STATIC METHODS--- //---CONSTRUCTORS--- /** - * Constructs a new listener + * Constructs a new TCPReader * - * @param logger a reference to the logger we are using - * @param configManager a reference to the ConfigurationManager we are using - * @param port The port that the server will listen on. + * @param queue A reference to our Queue + * @param port The port that the TCPReader will listen on */ public TCPReader(int port, Queue queue) { _port = port; @@ -95,7 +92,7 @@ class TCPReader extends Thread { // If we've stopped on the line above we won't want to try this ! if(run){ try { - // Setup the HostInit so it can carry on communications with the host + // Setup the TCPReaderInit and start it TCPReaderInit init = new TCPReaderInit(hostSocket, _queue); // and start it init.start(); @@ -152,6 +149,9 @@ class TCPReader extends Thread { */ private int _port; + /** + * A reference to our Queue + */ private Queue _queue; //---STATIC ATTRIBUTES---