ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/filter/TCPReader.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/TCPReader.java (file contents):
Revision 1.7 by tdb, Thu Jan 18 23:15:50 2001 UTC vs.
Revision 1.8 by tdb, Sun Jan 28 05:34:38 2001 UTC

# Line 14 | Line 14 | import java.net.UnknownHostException;
14   import uk.ac.ukc.iscream.util.*;
15  
16   /**
17 < * A socket listener to listen for new hosts registering with the system.
18 < * When a host makes a connection, the connecton is past to an instance
19 < * of the HostInit class, which handles further communication.
17 > * Reads TCP Heartbeats from the host applications.
18   *
19   * @author  $Author$
20   * @version $Id$
# Line 35 | Line 33 | class TCPReader extends Thread {
33   //---CONSTRUCTORS---
34  
35          /**
36 <     * Constructs a new listener
36 >     * Constructs a new TCPReader
37       *
38 <     * @param logger a reference to the logger we are using
39 <     * @param configManager a reference to the ConfigurationManager we are using
42 <         * @param port The port that the server will listen on.
38 >     * @param queue A reference to our Queue
39 >         * @param port The port that the TCPReader will listen on
40           */
41      public TCPReader(int port, Queue queue) {
42          _port = port;
# Line 95 | Line 92 | class TCPReader extends Thread {
92                          // If we've stopped on the line above we won't want to try this !
93              if(run){
94                                  try {
95 <                                    // Setup the HostInit so it can carry on communications with the host
95 >                                    // Setup the TCPReaderInit and start it
96                      TCPReaderInit init = new TCPReaderInit(hostSocket, _queue);
97                                      // and start it
98                      init.start();
# Line 152 | Line 149 | class TCPReader extends Thread {
149           */
150      private int _port;
151      
152 +    /**
153 +     * A reference to our Queue
154 +     */
155      private Queue _queue;
156      
157   //---STATIC ATTRIBUTES---

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines