Package io.vertx.core.datagram
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Buffer
data()
Returns the data of theDatagramPacket
SocketAddress
sender()
Returns theSocketAddress
of the sender that sent thisDatagramPacket
.
-
-
-
Method Detail
-
sender
SocketAddress sender()
Returns theSocketAddress
of the sender that sent thisDatagramPacket
.- Returns:
- the address of the sender
-
data
Buffer data()
Returns the data of theDatagramPacket
- Returns:
- the data
-
-