Versions in this module Expand all Collapse all v0 v0.19.5 Jan 10, 2021 Changes in this version + func HasAckElicitingFrames(fs []Frame) bool + func IsFrameAckEliciting(f wire.Frame) bool + func NewAckHandler(initialPacketNumber protocol.PacketNumber, rttStats *utils.RTTStats, ...) (SentPacketHandler, ReceivedPacketHandler) + type Frame struct + OnAcked func(wire.Frame) + OnLost func(wire.Frame) + type Packet struct + EncryptionLevel protocol.EncryptionLevel + Frames []Frame + LargestAcked protocol.PacketNumber + Length protocol.ByteCount + PacketNumber protocol.PacketNumber + SendTime time.Time + type PacketElement struct + Value Packet + func (e *PacketElement) Next() *PacketElement + func (e *PacketElement) Prev() *PacketElement + type PacketList struct + func NewPacketList() *PacketList + func (l *PacketList) Back() *PacketElement + func (l *PacketList) Front() *PacketElement + func (l *PacketList) Init() *PacketList + func (l *PacketList) InsertAfter(v Packet, mark *PacketElement) *PacketElement + func (l *PacketList) InsertBefore(v Packet, mark *PacketElement) *PacketElement + func (l *PacketList) Len() int + func (l *PacketList) MoveAfter(e, mark *PacketElement) + func (l *PacketList) MoveBefore(e, mark *PacketElement) + func (l *PacketList) MoveToBack(e *PacketElement) + func (l *PacketList) MoveToFront(e *PacketElement) + func (l *PacketList) PushBack(v Packet) *PacketElement + func (l *PacketList) PushBackList(other *PacketList) + func (l *PacketList) PushFront(v Packet) *PacketElement + func (l *PacketList) PushFrontList(other *PacketList) + func (l *PacketList) Remove(e *PacketElement) Packet + type ReceivedPacketHandler interface + DropPackets func(protocol.EncryptionLevel) + GetAckFrame func(encLevel protocol.EncryptionLevel, onlyIfQueued bool) *wire.AckFrame + GetAlarmTimeout func() time.Time + IsPotentiallyDuplicate func(protocol.PacketNumber, protocol.EncryptionLevel) bool + ReceivedPacket func(pn protocol.PacketNumber, ecn protocol.ECN, encLevel protocol.EncryptionLevel, ...) error + type SendMode uint8 + const SendAck + const SendAny + const SendNone + const SendPTOAppData + const SendPTOHandshake + const SendPTOInitial + func (s SendMode) String() string + type SentPacketHandler interface + DropPackets func(protocol.EncryptionLevel) + GetLossDetectionTimeout func() time.Time + HasPacingBudget func() bool + OnLossDetectionTimeout func() error + PeekPacketNumber func(protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen) + PopPacketNumber func(protocol.EncryptionLevel) protocol.PacketNumber + QueueProbePacket func(protocol.EncryptionLevel) bool + ReceivedAck func(ackFrame *wire.AckFrame, encLevel protocol.EncryptionLevel, recvTime time.Time) error + ReceivedBytes func(protocol.ByteCount) + ResetForRetry func() error + SendMode func() SendMode + SentPacket func(packet *Packet) + SetHandshakeConfirmed func() + TimeUntilSend func() time.Time