Interface DatagramPacket
public interface DatagramPacket
A received datagram packet (UDP) which contains the data and information about the sender of the data itself.
- Author:
- Norman Maurer
-
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the data of theDatagramPacketsender()Returns theSocketAddressof the sender that sent thisDatagramPacket.
-
Method Details
-
sender
SocketAddress sender()Returns theSocketAddressof the sender that sent thisDatagramPacket.- Returns:
- the address of the sender
-
data
-