forked from quic-go/quic-go
No functional change expected. The error was only non-nil if some required values for the STOP_WAITING frame were not set. It should be sufficient to throw an error when attempting to write an invalid STOP_WAITING frame.
14 lines
259 B
Go
14 lines
259 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
|
|
MinLength(version protocol.VersionNumber) protocol.ByteCount
|
|
}
|