Versions in this module Expand all Collapse all v0 v0.25.0 Aug 22, 2022 Changes in this version + const AckDelayExponent + const ConnectionFlowControlMultiplier + const DatagramRcvQueueLen + const DefaultAckDelayExponent + const DefaultConnectionIDLength + const DefaultHandshakeIdleTimeout + const DefaultHandshakeTimeout + const DefaultIdleTimeout + const DefaultInitialMaxData + const DefaultInitialMaxStreamData + const DefaultMaxAckDelay + const DefaultMaxIncomingStreams + const DefaultMaxIncomingUniStreams + const DefaultMaxReceiveConnectionFlowControlWindow + const DefaultMaxReceiveStreamFlowControlWindow + const DesiredReceiveBufferSize + const InitialPacketSizeIPv4 + const InitialPacketSizeIPv6 + const InvalidPacketLimitAES + const InvalidPacketLimitChaCha + const KeyUpdateInterval + const Max0RTTQueueLen + const Max0RTTQueueingDuration + const Max0RTTQueues + const MaxAcceptQueueSize + const MaxAckDelay + const MaxAckDelayExponent + const MaxAckDelayInclGranularity + const MaxActiveConnectionIDs + const MaxByteCount + const MaxCongestionWindowPackets + const MaxConnIDLen + const MaxConnUnprocessedPackets + const MaxCryptoStreamOffset + const MaxIssuedConnectionIDs + const MaxKeepAliveInterval + const MaxMaxAckDelay + const MaxNonAckElicitingAcks + const MaxNumAckRanges + const MaxOutstandingSentPackets + const MaxPostHandshakeCryptoFrameSize + const MaxServerUnprocessedPackets + const MaxStreamFrameSorterGaps + const MaxTrackedSentPackets + const MaxUndecryptablePackets + const MinCoalescedPacketSize + const MinConnectionIDLenInitial + const MinInitialPacketSize + const MinPacingDelay + const MinRemoteIdleTimeout + const MinStatelessResetSize + const MinStreamFrameBufferSize + const MinUnknownVersionPacketSize + const PacketsPerConnectionID + const RetiredConnectionIDDeleteTimeout + const RetryTokenValidity + const TimerGranularity + const TokenValidity + const WindowUpdateThreshold + var SupportedVersions = []VersionNumber + func IsSupportedVersion(supported []VersionNumber, v VersionNumber) bool + func IsValidVersion(v VersionNumber) bool + type ByteCount int64 + const InvalidByteCount + const MaxAckFrameSize + const MaxDatagramFrameSize + const MaxPacketBufferSize + const MinStreamFrameSize + type ConnectionID []byte + func GenerateConnectionID(len int) (ConnectionID, error) + func GenerateConnectionIDForInitial() (ConnectionID, error) + func ReadConnectionID(r io.Reader, len int) (ConnectionID, error) + func (c ConnectionID) Bytes() []byte + func (c ConnectionID) Equal(other ConnectionID) bool + func (c ConnectionID) Len() int + func (c ConnectionID) String() string + type ECN uint8 + const ECNCE + const ECNNon + const ECT0 + const ECT1 + type EncryptionLevel uint8 + const Encryption0RTT + const Encryption1RTT + const EncryptionHandshake + const EncryptionInitial + func (e EncryptionLevel) String() string + type KeyPhase uint64 + func (p KeyPhase) Bit() KeyPhaseBit + type KeyPhaseBit uint8 + const KeyPhaseOne + const KeyPhaseUndefined + const KeyPhaseZero + func (p KeyPhaseBit) String() string + type PacketNumber int64 + const InvalidPacketNumber + const SkipPacketInitialPeriod + const SkipPacketMaxPeriod + func DecodePacketNumber(packetNumberLength PacketNumberLen, lastPacketNumber PacketNumber, ...) PacketNumber + type PacketNumberLen uint8 + const PacketNumberLen1 + const PacketNumberLen2 + const PacketNumberLen3 + const PacketNumberLen4 + func GetPacketNumberLengthForHeader(packetNumber, leastUnacked PacketNumber) PacketNumberLen + type PacketType uint8 + const PacketType0RTT + const PacketTypeHandshake + const PacketTypeInitial + const PacketTypeRetry + func (t PacketType) String() string + type Perspective int + const PerspectiveClient + const PerspectiveServer + func (p Perspective) Opposite() Perspective + func (p Perspective) String() string + type StatelessResetToken [16]byte + type StreamID int64 + const InvalidStreamID + func (s StreamID) InitiatedBy() Perspective + func (s StreamID) StreamNum() StreamNum + func (s StreamID) Type() StreamType + type StreamNum int64 + const InvalidStreamNum + const MaxStreamCount + func (s StreamNum) StreamID(stype StreamType, pers Perspective) StreamID + type StreamType uint8 + const StreamTypeBidi + const StreamTypeUni + type VersionNumber uint32 + const Version1 + const Version2 + const VersionDraft29 + const VersionTLS + const VersionUnknown + const VersionWhatever + func ChooseSupportedVersion(ours, theirs []VersionNumber) (VersionNumber, bool) + func GetGreasedVersions(supported []VersionNumber) []VersionNumber + func (vn VersionNumber) String() string