Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.net.DatagramSocket

Availability: JDK 1.0

public class DatagramSocket extends Object {
   // Public Constructors
      public DatagramSocket() throws SocketException;
      public DatagramSocket(int port) throws SocketException;
1.1  public DatagramSocket(int port, InetAddress laddr) throws SocketException;
   // Public Instance Methods
      public void close();
1.1  public InetAddress getLocalAddress();
      public int getLocalPort();
1.1  public synchronized int getSoTimeout() throws SocketException;
      public synchronized void receive(DatagramPacket p) throws IOException;
      public void send(DatagramPacket p) throws IOException;
1.1  public synchronized void setSoTimeout(int timeout) throws SocketException;
}
Extended By:
MulticastSocket.

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.