DatagramPackets are not immutable.

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()

Previous | Next | Top | Cafe con Leche

Copyright 2000 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified July 14, 2000