NAME

Net::QUIC::Datagram - UDP datagram produced by Net::QUIC

DESCRIPTION

A Net::QUIC::Datagram contains one complete UDP payload and the network path chosen by QUIC.

Net::QUIC::Driver passes these objects to its send callback.

Low-level Net::QUIC::Endpoint users receive them from next_datagram.

METHODS

data

Returns the UDP payload bytes.

local

Returns the packed concrete local source address for the datagram.

An adapter using a socket bound to one concrete address normally gets this source address automatically from the socket.

An adapter using a wildcard-bound socket must preserve this source address when transmitting the packet, using the platform's source-address selection mechanism.

peer

Returns the packed peer socket address for the datagram.