import java.net.*;
public class FastUDPDiscardServer extends UDPServer {
public final static int DEFAULT_PORT = 9;
public FastUDPDiscardServer() throws SocketException {
super(DEFAULT_PORT);
}
public void respond(DatagramPacket packet) {}
public static void main(String[] args) {
try {
FastUDPDiscardServer server = new FastUDPDiscardServer();
server.start();
}
catch (SocketException e) {
System.err.println(e);
}
}
}
|