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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/clientinterface/TCPClientListener.java (file contents):
Revision 1.13 by tdb, Tue May 29 17:02:34 2001 UTC vs.
Revision 1.14 by tdb, Wed Mar 20 12:56:37 2002 UTC

# Line 56 | Line 56 | class TCPClientListener extends Thread {
56           * and then passing them off to handler processes to deal with.
57           */
58      public void run(){
59 +        // get our ACL from the configuration
60 +        ACL acl = null;
61 +        try {
62 +            String stringACL = ConfigurationProxy.getInstance().getProperty("ClientInterface", "ClientInterface.TCPControlChannelACL");
63 +            acl = new ACL(stringACL);
64 +        }
65 +        catch(PropertyNotFoundException e) {
66 +            _logger.write(toString(), Logger.WARNING, "No ACL found for ClientInterface (control channel listener): " + e);
67 +        }
68 +        
69          // get our port
70          int portNum;
71          try {
# Line 74 | Line 84 | class TCPClientListener extends Thread {
84          boolean run = true;
85          try{
86                          // Setup the ServerSocket so that clients can connect
87 <            listenPort = new ServerSocket(portNum);
87 >                        // use an ACLServerSocket if we have an ACL
88 >                        if(acl != null) {
89 >                            listenPort = new ACLServerSocket(acl, portNum);
90 >                        }
91 >                        else {
92 >                listenPort = new ServerSocket(portNum);
93 >            }
94          }
95          catch(IOException e){
96          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines