Java in a Nutshell Online Quick Reference for Java 1.1
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;
}