Top Description Methods
io.vertx.core.datagram

public Interface DatagramPacket

Known Direct Implementers
io.vertx.core.datagram.impl.DatagramPacketImpl
Annotations
@VertxGen
Imports
io.vertx.core.buffer.Buffer, io.vertx.codegen.annotations.VertxGen, io.vertx.core.net.SocketAddress

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 TypeMethod and Description
public Buffer

Returns:

the data
data
()
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

Returns the data of the io.vertx.core.datagram.DatagramPacket

public SocketAddress

Returns:

the address of the sender
sender
()

Returns the io.vertx.core.net.SocketAddress of the sender that sent this io.vertx.core.datagram.DatagramPacket.

Method Detail

databack to summary
public Buffer data()

References Deprecated

Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Returns the data of the io.vertx.core.datagram.DatagramPacket

Returns:Buffer

the data

senderback to summary
public SocketAddress sender()

Returns the io.vertx.core.net.SocketAddress of the sender that sent this io.vertx.core.datagram.DatagramPacket.

Returns:SocketAddress

the address of the sender