FileDocCategorySizeDatePackage
FastUDPDiscardServer.javaAPI DocExample476Sat Sep 09 20:51:08 BST 2000None

FastUDPDiscardServer.java

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);
   }
 
  }

}