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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filtermanager/HostInit.java (file contents):
Revision 1.12 by ajm, Tue Dec 12 19:17:02 2000 UTC vs.
Revision 1.15 by tdb, Sun Jan 28 05:38:13 2001 UTC

# Line 5 | Line 5 | package uk.ac.ukc.iscream.filtermanager;
5   import uk.ac.ukc.iscream.core.*;
6   import uk.ac.ukc.iscream.filter.*;
7   import uk.ac.ukc.iscream.util.*;
8 + import uk.ac.ukc.iscream.componentmanager.*;
9   import java.net.Socket;
10   import java.io.*;
11  
# Line 29 | Line 30 | class HostInit extends Thread {
30  
31   //---CONSTRUCTORS---
32  
33 +    /**
34 +     * Construct a new HostInit.
35 +     *
36 +     * @param socket The socket to which the host is connected
37 +     */
38      public HostInit(Socket socket) throws IOException {
39          _socket = socket;
40 +        // setup reader & writer
41          _socketIn = new BufferedReader(new InputStreamReader(_socket.getInputStream()));
42          _socketOut = new PrintWriter(_socket.getOutputStream());
43          _logger.write(toString(), Logger.SYSINIT, "created");
# Line 38 | Line 45 | class HostInit extends Thread {
45      
46   //---PUBLIC METHODS---
47  
48 +    /**
49 +     * Main method in this class, which handles communicating with
50 +     * the host to determine it's setup.
51 +     */
52      public void run() {
53          try {
54              String inBound = _socketIn.readLine();
# Line 167 | Line 178 | class HostInit extends Thread {
178      public String toString() {
179          return FormatName.getName(
180              _name,
181 <            this.getClass().getName(),
181 >            getClass().getName(),
182              REVISION);
183      }
184  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines