Versions in this module Expand all Collapse all v0 v0.6.0 Dec 12, 2017 Changes in this version + func ComposeGQUICVersionNegotiation(connID protocol.ConnectionID, versions []protocol.VersionNumber) []byte + func ComposeVersionNegotiation(connID protocol.ConnectionID, pn protocol.PacketNumber, ...) []byte + func LogFrame(frame Frame, sent bool) + func WritePublicReset(connectionID protocol.ConnectionID, rejectedPacketNumber protocol.PacketNumber, ...) []byte + type AckFrame struct + AckRanges []AckRange + DelayTime time.Duration + LargestAcked protocol.PacketNumber + LowestAcked protocol.PacketNumber + PacketReceivedTime time.Time + func ParseAckFrame(r *bytes.Reader, version protocol.VersionNumber) (*AckFrame, error) + func (f *AckFrame) AcksPacket(p protocol.PacketNumber) bool + func (f *AckFrame) HasMissingRanges() bool + func (f *AckFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *AckFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type AckRange struct + First protocol.PacketNumber + Last protocol.PacketNumber + type BlockedFrame struct + func ParseBlockedFrame(r *bytes.Reader, version protocol.VersionNumber) (*BlockedFrame, error) + func (f *BlockedFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *BlockedFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type ConnectionCloseFrame struct + ErrorCode qerr.ErrorCode + ReasonPhrase string + func ParseConnectionCloseFrame(r *bytes.Reader, version protocol.VersionNumber) (*ConnectionCloseFrame, error) + func (f *ConnectionCloseFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *ConnectionCloseFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type Frame interface + MinLength func(version protocol.VersionNumber) (protocol.ByteCount, error) + Write func(b *bytes.Buffer, version protocol.VersionNumber) error + func ParseBlockedFrameLegacy(r *bytes.Reader, _ protocol.VersionNumber) (Frame, error) + func ParseWindowUpdateFrame(r *bytes.Reader, _ protocol.VersionNumber) (Frame, error) + type GoawayFrame struct + ErrorCode qerr.ErrorCode + LastGoodStream protocol.StreamID + ReasonPhrase string + func ParseGoawayFrame(r *bytes.Reader, _ protocol.VersionNumber) (*GoawayFrame, error) + func (f *GoawayFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *GoawayFrame) Write(b *bytes.Buffer, _ protocol.VersionNumber) error + type Header struct + ConnectionID protocol.ConnectionID + DiversificationNonce []byte + IsLongHeader bool + IsVersionNegotiation bool + KeyPhase int + OmitConnectionID bool + PacketNumber protocol.PacketNumber + PacketNumberLen protocol.PacketNumberLen + Raw []byte + ResetFlag bool + SupportedVersions []protocol.VersionNumber + Type protocol.PacketType + Version protocol.VersionNumber + VersionFlag bool + func ParseHeaderSentByClient(b *bytes.Reader) (*Header, error) + func ParseHeaderSentByServer(b *bytes.Reader, version protocol.VersionNumber) (*Header, error) + func (h *Header) GetLength(pers protocol.Perspective, version protocol.VersionNumber) (protocol.ByteCount, error) + func (h *Header) Log() + func (h *Header) Write(b *bytes.Buffer, pers protocol.Perspective, version protocol.VersionNumber) error + type MaxDataFrame struct + ByteOffset protocol.ByteCount + func ParseMaxDataFrame(r *bytes.Reader, version protocol.VersionNumber) (*MaxDataFrame, error) + func (f *MaxDataFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *MaxDataFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type MaxStreamDataFrame struct + ByteOffset protocol.ByteCount + StreamID protocol.StreamID + func ParseMaxStreamDataFrame(r *bytes.Reader, version protocol.VersionNumber) (*MaxStreamDataFrame, error) + func (f *MaxStreamDataFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *MaxStreamDataFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type PingFrame struct + func ParsePingFrame(r *bytes.Reader, version protocol.VersionNumber) (*PingFrame, error) + func (f *PingFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *PingFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type PublicReset struct + Nonce uint64 + RejectedPacketNumber protocol.PacketNumber + func ParsePublicReset(r *bytes.Reader) (*PublicReset, error) + type RstStreamFrame struct + ByteOffset protocol.ByteCount + ErrorCode uint32 + StreamID protocol.StreamID + func ParseRstStreamFrame(r *bytes.Reader, version protocol.VersionNumber) (*RstStreamFrame, error) + func (f *RstStreamFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *RstStreamFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type StopWaitingFrame struct + LeastUnacked protocol.PacketNumber + PacketNumber protocol.PacketNumber + PacketNumberLen protocol.PacketNumberLen + func ParseStopWaitingFrame(r *bytes.Reader, packetNumber protocol.PacketNumber, ...) (*StopWaitingFrame, error) + func (f *StopWaitingFrame) MinLength(_ protocol.VersionNumber) (protocol.ByteCount, error) + func (f *StopWaitingFrame) Write(b *bytes.Buffer, _ protocol.VersionNumber) error + type StreamBlockedFrame struct + StreamID protocol.StreamID + func ParseStreamBlockedFrame(r *bytes.Reader, version protocol.VersionNumber) (*StreamBlockedFrame, error) + func (f *StreamBlockedFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *StreamBlockedFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error + type StreamFrame struct + Data []byte + DataLenPresent bool + FinBit bool + Offset protocol.ByteCount + StreamID protocol.StreamID + func ParseStreamFrame(r *bytes.Reader, version protocol.VersionNumber) (*StreamFrame, error) + func (f *StreamFrame) DataLen() protocol.ByteCount + func (f *StreamFrame) MinLength(version protocol.VersionNumber) (protocol.ByteCount, error) + func (f *StreamFrame) Write(b *bytes.Buffer, version protocol.VersionNumber) error