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