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.37 by tdb, Thu Feb 27 17:04:24 2003 UTC vs.
Revision 1.39 by tdb, Fri Feb 28 13:03:57 2003 UTC

# Line 101 | Line 101 | class HostInit extends Thread {
101                      getInBound("FQDN");
102                      _socketOut.println(_socket.getInetAddress().getHostName().toLowerCase());
103                      
104 +                    // try for IP
105 +                    getInBound("IP");
106 +                    _socketOut.println(_socket.getInetAddress().getHostAddress());
107 +                    
108                      // get properties
109                      String reqProperty = getInBound();
110                      while(!reqProperty.equals("ENDCONFIG")) {
# Line 232 | Line 236 | class HostInit extends Thread {
236          String inBound = getInBound();
237          // check if it's what we're expecting
238          if(!inBound.equals(expected)) {
239 +            _socketOut.println("ERROR");
240              throw new IOException("protocol error - expected:"+expected+" got:" + inBound);
241          }
242          // it should be ok then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines