Class part2.chapter11.UDPEchoServer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class part2.chapter11.UDPEchoServer

java.lang.Object
   |
   +----part2.chapter11.UDPEchoServer

public class UDPEchoServer
extends Object

Variable Index

 o socket

Constructor Index

 o UDPEchoServer(int)

Method Index

 o execute()
 o main(String[])
 o receive()
 o sendEcho(InetAddress, int, byte[], int)

Variables

 o socket
  protected DatagramSocket socket

Constructors

 o UDPEchoServer
  public UDPEchoServer(int port) throws IOException

Methods

 o execute
  public void execute() throws IOException
 o receive
  protected DatagramPacket receive() throws IOException
 o sendEcho
  protected void sendEcho(InetAddress address,
                          int port,
                          byte data[],
                          int length) throws IOException
 o main
  public static void main(String args[]) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index