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/UDPReader.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filter/UDPReader.java (file contents):
Revision 1.18 by tdb, Tue May 29 17:02:35 2001 UTC vs.
Revision 1.19 by tdb, Tue Mar 19 17:22:12 2002 UTC

# Line 57 | Line 57 | public class UDPReader extends Thread{
57       * over UDP.
58       */
59      public void run() {
60 +        // get our ACL from the configuration
61 +        ACL udpACL = null;
62 +        try {
63 +            String stringACL = ConfigurationProxy.getInstance().getProperty(FilterMain.NAME, "Filter.UDPACL");
64 +            udpACL = new ACL(stringACL);
65 +        }
66 +        catch(PropertyNotFoundException e) {
67 +            _logger.write(toString(), Logger.WARNING, "No ACL found for UDPReader: " + e);
68 +        }
69          
70          // setup a Datagram socket
71          DatagramSocket socket = null;
72          try {
73 <            socket = new DatagramSocket(_port);
73 >            // use an ACLServerSocket if we have an ACL
74 >                        if(udpACL != null) {
75 >                            socket = new ACLDatagramSocket(udpACL, _port);
76 >                        }
77 >                        else {
78 >                socket = new DatagramSocket(_port);
79 >            }
80          }
81          catch (BindException e){
82              _logger.write(this.toString(), Logger.FATAL, "Could not start the UDPReader thread on port "+_port+" as this port was already in use.");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines