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)
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
ECN : context.stringer
ECN : runtime.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
PacketType : context.stringer
PacketType : runtime.stringer
const PacketType0RTT
const PacketTypeHandshake
const PacketTypeInitial
const PacketTypeRetry
A StatelessResetToken is a stateless reset token.
Package-Level Functions (only one, which is exported)
func ParseECNHeaderBits(bits byte) ECN
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 ECNUnsupported ECN = 0
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
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |