Package io.netty.handler.codec.quic
Interface QuicHeaderParser.QuicHeaderProcessor
-
- Enclosing class:
- QuicHeaderParser
public static interface QuicHeaderParser.QuicHeaderProcessorCalled when a QUIC packet and its header could be parsed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocess(java.net.InetSocketAddress sender, java.net.InetSocketAddress recipient, ByteBuf packet, QuicPacketType type, long version, ByteBuf scid, ByteBuf dcid, ByteBuf token)Called when a QUIC packet header was parsed.
-
-
-
Method Detail
-
process
void process(java.net.InetSocketAddress sender, java.net.InetSocketAddress recipient, ByteBuf packet, QuicPacketType type, long version, ByteBuf scid, ByteBuf dcid, ByteBuf token) throws java.lang.ExceptionCalled when a QUIC packet header was parsed.- Parameters:
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 callByteBuf.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.- Throws:
java.lang.Exception- throws if an error happens during processing.
-
-