ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/XMLReader/UDPReaderThread.java
(Generate patch)

Comparing experimental/server/XMLReader/UDPReaderThread.java (file contents):
Revision 1.1 by pjm2, Fri Nov 17 11:23:19 2000 UTC vs.
Revision 1.2 by pjm2, Fri Nov 17 12:16:39 2000 UTC

# Line 15 | Line 15 | public class UDPReaderThread extends Thread{
15      }
16      
17      public void run(){
18 +
19 +        System.out.println("UDPReaderThread - Received the following raw stuff: "+xml);
20 +
21          XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml);
22          XMLPacket packet = xmlPacketMaker.createXMLPacket();
23 +
24 +        if (packet == null){
25 +            System.out.println("UDPReaderThread - A null XMLPacket was returned, I think I'll ignore it!");
26 +            return;
27 +        }
28 +        System.out.println("UDPReaderThread - An XML Packet was read sucessfully: -");
29 +        packet.printAll();
30 +        // Now do something with this XMLPacket!!!
31 +        // ....
32      }
33      
34      String xml;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines