Generated by
JDiff

Class java.net.DatagramPacket

Documentation changed from old to new.

Added Constructors
DatagramPacket(byte[], int, int, SocketAddress) Constructs a datagram packet for sending packets of length length with offset ioffsetto the specified port number on the specified host.
DatagramPacket(byte[], int, SocketAddress) Constructs a datagram packet for sending packets of length length to the specified port number on the specified host.
 

Added Methods
SocketAddress getSocketAddress() Gets the SocketAddress (usually IP address + port number) of the remote host that this packet is being sent to or is coming from.
void setSocketAddress(SocketAddress) Sets the SocketAddress (usually IP address + port number) of the remote host to which this datagram is being sent.
 

Changed Methods
byte[] getData() Documentation changed from old to new.
Returns the data buffer.
void setLength(int) Documentation changed from old to new.
Set the length for this packet.
void setPort(int) Documentation changed from old to new.
Sets the port number on the remote host to which this datagram is being sent.
void setData(byte[]) Documentation changed from old to new.
Set the data buffer for this packet.
void setData(byte[], int, int) Documentation changed from old to new.
Set the data buffer for this packet.