Top Fields Constructors Methods
io.vertx.core.datagram.impl

pack-priv final Class DatagramPacketImpl

extends Object
implements DatagramPacket
Class Inheritance
All Implemented Interfaces
io.vertx.core.datagram.DatagramPacket
Imports
io.vertx.core.buffer.Buffer, io.vertx.core.datagram.DatagramPacket, io.vertx.core.net.SocketAddress, io.vertx.core.net.impl.SocketAddressImpl, java.net.InetSocketAddress

Author
Norman Maurer

Field Summary

Modifier and TypeField and Description
private final Buffer
buffer

References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
private final InetSocketAddress
private SocketAddress

Constructor Summary

AccessConstructor and Description
pack-priv
DatagramPacketImpl(InetSocketAddress sender, Buffer buffer)
References Deprecated Buffer is deprecated or references (maybe indirectly) at least one deprecated element.

Method Summary

Modifier and TypeMethod and Description
public Buffer
data()

Implements io.vertx.core.datagram.DatagramPacket.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
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferback to summary
private final Buffer buffer

References Deprecated

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

See corresponding docs for further information.

senderback to summary
private final InetSocketAddress sender
senderAddressback to summary
private SocketAddress senderAddress

Constructor Detail

DatagramPacketImplback to summary
pack-priv DatagramPacketImpl(InetSocketAddress sender, Buffer buffer)

References Deprecated

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

See corresponding docs for further information.

Method Detail

databack to summary
public Buffer data()

Implements io.vertx.core.datagram.DatagramPacket.data.

Doc from io.vertx.core.datagram.DatagramPacket.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

Annotations
@Override
senderback to summary
public SocketAddress sender()

Implements io.vertx.core.datagram.DatagramPacket.sender.

Doc from io.vertx.core.datagram.DatagramPacket.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

Annotations
@Override