Versions in this module Expand all Collapse all v0 v0.0.1 Jun 2, 2023 Changes in this version + func HasRetransmittableFrames(fs []wire.Frame) bool + func IsFrameRetransmittable(f wire.Frame) bool + type Packet struct + EncryptionLevel protocol.EncryptionLevel + Frames []wire.Frame + Length protocol.ByteCount + PacketNumber protocol.PacketNumber + PacketType protocol.PacketType + 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 + GetAckFrame func() *wire.AckFrame + GetAlarmTimeout func() time.Time + IgnoreBelow func(protocol.PacketNumber) + ReceivedPacket func(packetNumber protocol.PacketNumber, rcvTime time.Time, shouldInstigateAck bool) error + func NewReceivedPacketHandler(rttStats *congestion.RTTStats, logger utils.Logger, ...) ReceivedPacketHandler + type SendMode uint8 + const SendAck + const SendAny + const SendNone + const SendRTO + const SendRetransmission + const SendTLP + func (s SendMode) String() string + type SentPacketHandler interface + DequeuePacketForRetransmission func() *Packet + DequeueProbePacket func() (*Packet, error) + GetAlarmTimeout func() time.Time + GetLowestPacketNotConfirmedAcked func() protocol.PacketNumber + GetPacketNumberLen func(protocol.PacketNumber) protocol.PacketNumberLen + GetStopWaitingFrame func(force bool) *wire.StopWaitingFrame + OnAlarm func() error + ReceivedAck func(ackFrame *wire.AckFrame, withPacketNumber protocol.PacketNumber, ...) error + SendMode func() SendMode + SentPacket func(packet *Packet) + SentPacketsAsRetransmission func(packets []*Packet, retransmissionOf protocol.PacketNumber) + SetHandshakeComplete func() + ShouldSendNumPackets func() int + TimeUntilSend func() time.Time + func NewSentPacketHandler(rttStats *congestion.RTTStats, logger utils.Logger, ...) SentPacketHandler