public static interface QuicHeaderParser.QuicHeaderProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
process(InetSocketAddress sender,
InetSocketAddress recipient,
io.netty.buffer.ByteBuf packet,
QuicPacketType type,
int version,
io.netty.buffer.ByteBuf scid,
io.netty.buffer.ByteBuf dcid,
io.netty.buffer.ByteBuf token)
Called when a QUIC packet header was parsed.
|
void process(InetSocketAddress sender, InetSocketAddress recipient, io.netty.buffer.ByteBuf packet, QuicPacketType type, int version, io.netty.buffer.ByteBuf scid, io.netty.buffer.ByteBuf dcid, io.netty.buffer.ByteBuf token) throws Exception
sender - the sender of the QUIC packet.recipient - the recipient of the QUIC packet.packet - the raw QUIC packet. The ownership is not transferred, which means you will need to call
ByteBuf.retain() on it if you want to keep a reference after this method
returns.type - the type of the packet.version - the version of the packet.scid - the source connection id. The ownership is not transferred and its generally not allowed
to hold any references to this buffer outside of the method as it will be re-used.dcid - the destination connection id. The ownership is not transferred and its generally not
allowed to hold any references to this buffer outside of the method as it will be
re-used.token - the token.The ownership is not transferred and its generally not allowed
to hold any references to this buffer outside of the method as it will be re-used.Exception - throws if an error happens during processing.Copyright © 2020–2021 The Netty Project. All rights reserved.