A received datagram packet (UDP) which contains the data and information about the sender of the data itself.
Constructor and description |
---|
DatagramPacket
(java.lang.Object delegate) |
Type | Name and description |
---|---|
Buffer |
data() Returns the data of the DatagramPacket |
java.lang.Object |
getDelegate() |
SocketAddress |
sender() Returns the SocketAddress of the sender that sent this DatagramPacket. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Returns the data of the DatagramPacket
Returns the SocketAddress of the sender that sent this DatagramPacket.