Changed Constructors |
DatagramPacket(byte[], int, int)
|
Documentation changed from old to new. |
Constructs a DatagramPacket for receiving packets of length length specifying an offset into the buffer. |
DatagramPacket(byte[], int, int, InetAddress, int)
|
Documentation changed from old to new. |
Constructs a datagram packet for sending packets of length length with offset ioffset to the specified port number on the specified host. |
DatagramPacket(byte[], int, InetAddress, int)
|
Documentation changed from old to new. |
Constructs a datagram packet for sending packets of length length to the specified port number on the specified host. |
Changed Methods |
InetAddress getAddress()
|
Documentation changed from old to new. |
Returns the IP address of the machine to which this datagram is being sent or from which the datagram was received. |
byte[] getData()
|
Documentation changed from old to new. |
Returns the data received or the data to be sent. |
int getLength()
|
Documentation changed from old to new. |
Returns the length of the data to be sent or the length of the data received. |
int getOffset()
|
Documentation changed from old to new. |
Returns the offset of the data to be sent or the offset of the data received. |
int getPort()
|
Documentation changed from old to new. |
Returns the port number on the remote host to which this datagram is being sent or from which the datagram was received. |
void setAddress(InetAddress )
|
Documentation changed from old to new. |
Sets the IP address of the machine to which this datagram is being sent. |
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[], int, int)
|
Documentation changed from old to new. |
Set the data buffer for this packet. |