package protocol

Import Path
	github.com/refraction-networking/utls/internal/quicvarint/protocol (on go.dev)

Dependency Relation
	imports 2 packages, and imported by one package

Involved Source Files protocol.go
Package-Level Type Names (total 4, all are exported)
/* sort exporteds by: | */
A ByteCount in QUIC func github.com/refraction-networking/utls/internal/quicvarint.Len(i uint64) ByteCount func github.com/refraction-networking/utls/internal/quicvarint.AppendWithLen(b []byte, i uint64, length ByteCount) []byte const InvalidByteCount const MaxByteCount
( ECN) String() string ( ECN) ToHeaderBits() byte ECN : fmt.Stringer func ParseECNHeaderBits(bits byte) ECN const ECNCE const ECNNon const ECNUnsupported const ECT0 const ECT1
The PacketType is the Long Header Type ( PacketType) String() string PacketType : fmt.Stringer const PacketType0RTT const PacketTypeHandshake const PacketTypeInitial const PacketTypeRetry
A StatelessResetToken is a stateless reset token.
Package-Level Functions (only one, which is exported)
Package-Level Constants (total 25, all are exported)
DefaultAckDelayExponent is the default ack delay exponent
DefaultActiveConnectionIDLimit is the default active connection ID limit
DefaultMaxAckDelay is the default max_ack_delay
const ECNCE ECN = 4 // 11
const ECNNon ECN = 1 // 00
const ECT0 ECN = 3 // 10
const ECT1 ECN = 2 // 01
InvalidByteCount is an invalid byte count
InvalidPacketLimitAES is the maximum number of packets that we can fail to decrypt when using AEAD_AES_128_GCM or AEAD_AES_265_GCM.
InvalidPacketLimitChaCha is the maximum number of packets that we can fail to decrypt when using AEAD_CHACHA20_POLY1305.
MaxAckDelayExponent is the maximum ack delay exponent
MaxByteCount is the maximum value of a ByteCount
MaxConnIDLen is the maximum length of the connection ID
MaxLargePacketBufferSize is used when using GSO
MaxMaxAckDelay is the maximum max_ack_delay
MaxPacketBufferSize maximum packet size of any QUIC packet, based on ethernet's max size, minus the IP and UDP headers. IPv6 has a 40 byte header, UDP adds an additional 8 bytes. This is a total overhead of 48 bytes. Ethernet's max packet size is 1500 bytes, 1500 - 48 = 1452.
MinConnectionIDLenInitial is the minimum length of the destination connection ID on an Initial packet.
MinInitialPacketSize is the minimum size an Initial packet is required to have.
MinStatelessResetSize is the minimum size of a stateless reset packet that we send
MinUnknownVersionPacketSize is the minimum size a packet with an unknown version needs to have in order to trigger a Version Negotiation packet.
PacketType0RTT is the packet type of a 0-RTT packet
PacketTypeHandshake is the packet type of a Handshake packet
PacketTypeInitial is the packet type of an Initial packet
PacketTypeRetry is the packet type of a Retry packet