FileDocCategorySizeDatePackage
UDPDiscardServer2.javaAPI DocExample343Thu Apr 03 15:25:50 BST 1997None

UDPDiscardServer2

public class UDPDiscardServer2 extends UDPServer

Fields Summary
protected static int
defaultPort
Constructors Summary
Methods Summary
public static voidrespond(java.net.DatagramSocket ds, java.net.DatagramPacket dp)


         

    String s = new String(dp.getData(), 0, 0, dp.getLength());
    System.out.println(dp.getAddress() + " at port " + dp.getPort() + " says " + s);