mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 12:47:36 +03:00
17 lines
424 B
Go
17 lines
424 B
Go
package wire
|
|
|
|
import (
|
|
"github.com/lucas-clemente/quic-go/internal/protocol"
|
|
)
|
|
|
|
// A Frame in QUIC
|
|
type Frame interface {
|
|
Append(b []byte, version protocol.VersionNumber) ([]byte, error)
|
|
Length(version protocol.VersionNumber) protocol.ByteCount
|
|
}
|
|
|
|
// A FrameParser parses QUIC frames, one by one.
|
|
type FrameParser interface {
|
|
ParseNext([]byte, protocol.EncryptionLevel) (int, Frame, error)
|
|
SetAckDelayExponent(uint8)
|
|
}
|