Documentation ¶
Index ¶
Constants ¶
const DefaultAckDelayExponent = 3
DefaultAckDelayExponent is the default ack delay exponent
const DefaultActiveConnectionIDLimit = 2
DefaultActiveConnectionIDLimit is the default active connection ID limit
const DefaultMaxAckDelay = 25 * time.Millisecond
DefaultMaxAckDelay is the default max_ack_delay
const InvalidPacketLimitAES = 1 << 52
InvalidPacketLimitAES is the maximum number of packets that we can fail to decrypt when using AEAD_AES_128_GCM or AEAD_AES_265_GCM.
const InvalidPacketLimitChaCha = 1 << 36
InvalidPacketLimitChaCha is the maximum number of packets that we can fail to decrypt when using AEAD_CHACHA20_POLY1305.
const MaxAckDelayExponent = 20
MaxAckDelayExponent is the maximum ack delay exponent
const MaxByteCount = ByteCount(1<<62 - 1)
MaxByteCount is the maximum value of a ByteCount
const MaxConnIDLen = 20
MaxConnIDLen is the maximum length of the connection ID
const MaxLargePacketBufferSize = 20 * 1024
MaxLargePacketBufferSize is used when using GSO
const MaxMaxAckDelay = (1<<14 - 1) * time.Millisecond
MaxMaxAckDelay is the maximum max_ack_delay
const MaxPacketBufferSize = 1452
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.
const MinConnectionIDLenInitial = 8
MinConnectionIDLenInitial is the minimum length of the destination connection ID on an Initial packet.
const MinInitialPacketSize = 1200
MinInitialPacketSize is the minimum size an Initial packet is required to have.
const MinStatelessResetSize = 1 + 20 + 4 + 1 + 16 /* token */
MinStatelessResetSize is the minimum size of a stateless reset packet that we send
const MinUnknownVersionPacketSize = MinInitialPacketSize
MinUnknownVersionPacketSize is the minimum size a packet with an unknown version needs to have in order to trigger a Version Negotiation packet.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteCount ¶
type ByteCount int64
A ByteCount in QUIC
const InvalidByteCount ByteCount = -1
InvalidByteCount is an invalid byte count
type PacketType ¶
type PacketType uint8
The PacketType is the Long Header Type
const ( // PacketTypeInitial is the packet type of an Initial packet PacketTypeInitial PacketType = 1 + iota // PacketTypeRetry is the packet type of a Retry packet PacketTypeRetry // PacketTypeHandshake is the packet type of a Handshake packet PacketTypeHandshake // PacketType0RTT is the packet type of a 0-RTT packet PacketType0RTT )
func (PacketType) String ¶
func (t PacketType) String() string
type StatelessResetToken ¶
type StatelessResetToken [16]byte
A StatelessResetToken is a stateless reset token.