public synchronized void setAddress(InetAddress iaddr)
public synchronized void setPort(int iport)
public synchronized void setData(byte ibuf[])
public synchronized void setLength(int ilength)
public synchronized InetAddress getAddress()
public synchronized int getPort()
public synchronized byte[] getData()
public synchronized int getLength()
These methods are primarily useful when you're receiving datagrams.