public static interface QuicHeaderParser.QuicHeaderProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
process(java.net.InetSocketAddress sender,
java.net.InetSocketAddress recipient,
io.netty.buffer.ByteBuf packet,
QuicPacketType type,
long 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(java.net.InetSocketAddress sender,
java.net.InetSocketAddress recipient,
io.netty.buffer.ByteBuf packet,
QuicPacketType type,
long version,
io.netty.buffer.ByteBuf scid,
io.netty.buffer.ByteBuf dcid,
io.netty.buffer.ByteBuf token)
throws java.lang.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.java.lang.Exception - throws if an error happens during processing.Copyright © 2020-2024 The Netty Project. All Rights Reserved.