mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
20 lines
432 B
Go
20 lines
432 B
Go
package wire
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
"github.com/lucas-clemente/quic-go/internal/protocol"
|
|
)
|
|
|
|
// A Frame in QUIC
|
|
type Frame interface {
|
|
Write(b *bytes.Buffer, version protocol.VersionNumber) error
|
|
Length(version protocol.VersionNumber) protocol.ByteCount
|
|
}
|
|
|
|
// A FrameParser parses QUIC frames, one by one.
|
|
type FrameParser interface {
|
|
ParseNext(*bytes.Reader, protocol.EncryptionLevel) (Frame, error)
|
|
SetAckDelayExponent(uint8)
|
|
}
|