Interface QuicHeaderParser.QuicHeaderProcessor

Enclosing class:
QuicHeaderParser

public static interface QuicHeaderParser.QuicHeaderProcessor
Called when a QUIC packet and its header could be parsed.
  • Method Details

    • process

      void process(InetSocketAddress sender, InetSocketAddress recipient, ByteBuf packet, QuicPacketType type, long version, ByteBuf scid, ByteBuf dcid, ByteBuf token) throws Exception
      Called 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 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.
      Throws:
      Exception - throws if an error happens during processing.