| 12 |
|
System.exit(0); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
< |
System.out.println("Repeatedly sending the same packet to port 6667 ..."); |
| 16 |
< |
System.out.println("(about 100 per second, with id numbers)"); |
| 15 |
> |
System.out.println("Repeatedly sending the same packet to port 4589 ..."); |
| 16 |
> |
System.out.println("(*about* 100 per second, with id numbers)"); |
| 17 |
|
|
| 18 |
< |
int port = 6667; |
| 18 |
> |
int port = 4589; |
| 19 |
|
|
| 20 |
|
// stuff to send |
| 21 |
|
|
| 33 |
|
DatagramPacket packet = new DatagramPacket(buf, buf.length, address, port); |
| 34 |
|
// send request repeatedly |
| 35 |
|
socket.send(packet); |
| 36 |
< |
Thread.sleep(10); |
| 36 |
> |
Thread.sleep(1); |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
socket.close(); |