Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.net.DatagramPacket

Availability: JDK 1.0

public final class DatagramPacket extends Object {
   // Public Constructors
      public DatagramPacket(byte[] ibuf, int ilength);
      public DatagramPacket(byte[] ibuf, int ilength, InetAddress iaddr, int iport);
   // Public Instance Methods
      public synchronized InetAddress getAddress();
      public synchronized byte[] getData();
      public synchronized int getLength();
      public synchronized int getPort();
1.1  public synchronized void setAddress(InetAddress iaddr);
1.1  public synchronized void setData(byte[] ibuf);
1.1  public synchronized void setLength(int ilength);
1.1  public synchronized void setPort(int iport);
}
Passed To:
DatagramSocket.receive(), DatagramSocket.send(), DatagramSocketImpl.receive(), DatagramSocketImpl.send(), MulticastSocket.send().

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