PPT Slide
dp is filled with the data from that datagram.
Use getPort() and and getAddress() to tell where the packet came from, getData() to retrieve the data, and getLength() to see how many bytes were in the data.
If the received packet was too long for the buffer, then it's truncated to the length of the buffer.