Interface QuicHeaderParser.QuicHeaderProcessor

  • Enclosing class:
    QuicHeaderParser

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

      • process

        void process​(InetSocketAddress sender,
                     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 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.