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.3 by pjm2, Thu Nov 23 09:08:07 2000 UTC vs.
Revision 1.5 by pjm2, Thu Nov 23 09:21:48 2000 UTC

# Line 28 | Line 28 | public class UDPReader extends Thread{
28              socket = new DatagramSocket(port);
29          }
30          catch (BindException e){
31 <            logger.write(this.toString(), Logger.SYSMSG, "Could not start the UDPReader thread on port "+port+" as this port was already in use.");
31 >            logger.write(this.toString(), Logger.FATAL, "Could not start the UDPReader thread on port "+port+" as this port was already in use.");
32              return;
33          }
34          catch (Exception e){
35 <            logger.write(this.toString(), Logger.SYSMSG, "Could not start the UDPReader thread on port "+port+".");
35 >            logger.write(this.toString(), Logger.FATAL, "Could not start the UDPReader thread on port "+port+".");
36              return;
37          }
38          
# Line 48 | Line 48 | public class UDPReader extends Thread{
48                  buf = new byte[packetSizeLimit];
49                  DatagramPacket packet = new DatagramPacket(buf, buf.length);
50                  socket.receive(packet);
51 <                FilterThread t = new FilterThread(parent, packet);
51 >                FilterThread t = new FilterThread(packet, parent, logger);
52                  t.start();
53  
54              }
55              catch (IOException e) {
56 <                logger.write(this.toString(), Logger.SYSMSG, "The UDPReader thread has been shut down as an exception occured: "+e);
56 >                logger.write(this.toString(), Logger.WARNING, "This UDPReader thread has been shut down as an exception occured: "+e);
57                  return;
58              }
59          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines