mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
21 lines
429 B
Go
21 lines
429 B
Go
package ackhandler
|
|
|
|
import (
|
|
"github.com/quic-go/quic-go/internal/wire"
|
|
)
|
|
|
|
// FrameHandler handles the acknowledgement and the loss of a frame.
|
|
type FrameHandler interface {
|
|
OnAcked(wire.Frame)
|
|
OnLost(wire.Frame)
|
|
}
|
|
|
|
type Frame struct {
|
|
Frame wire.Frame // nil if the frame has already been acknowledged in another packet
|
|
Handler FrameHandler
|
|
}
|
|
|
|
type StreamFrame struct {
|
|
Frame *wire.StreamFrame
|
|
Handler FrameHandler
|
|
}
|