# | Line 38 | Line 38 | public class UDPReader extends Thread{ | |
---|---|---|
38 | System.out.println("UDPReader ready and listening for UDP packets on port "+port); | |
39 | ||
40 | byte[] buf; | |
41 | – | UDPReaderThread t = new UDPReaderThread(); |
41 | ||
42 | boolean running = true; | |
43 | while (running){ | |
# | Line 47 | Line 46 | public class UDPReader extends Thread{ | |
46 | // receive request | |
47 | DatagramPacket packet = new DatagramPacket(buf, buf.length); | |
48 | socket.receive(packet); | |
49 | + | UDPReaderThread t = new UDPReaderThread(); |
50 | t.run(packet); | |
51 | } | |
52 | catch (IOException e) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |