package flowcontrol

Import Path
	github.com/quic-go/quic-go/internal/flowcontrol (on go.dev)

Dependency Relation
	imports 8 packages, and imported by one package


Package-Level Type Names (total 2)
/* sort by: | */
The ConnectionFlowController is the flow controller for the connection. ( ConnectionFlowController) AddBytesRead(protocol.ByteCount) (hasWindowUpdate bool) ( ConnectionFlowController) AddBytesSent(protocol.ByteCount) for receiving // returns 0 if no update is necessary ( ConnectionFlowController) IsNewlyBlocked() (bool, protocol.ByteCount) ( ConnectionFlowController) Reset() error for sending ( ConnectionFlowController) UpdateSendWindow(protocol.ByteCount) (updated bool) func NewStreamFlowController(streamID protocol.StreamID, cfc ConnectionFlowController, receiveWindow protocol.ByteCount, maxReceiveWindow protocol.ByteCount, initialSendWindow protocol.ByteCount, rttStats *utils.RTTStats, logger utils.Logger) StreamFlowController
A StreamFlowController is a flow controller for a QUIC stream. Abandon is called when reading from the stream is aborted early, and there won't be any further calls to AddBytesRead. ( StreamFlowController) AddBytesRead(protocol.ByteCount) (hasStreamWindowUpdate, hasConnWindowUpdate bool) ( StreamFlowController) AddBytesSent(protocol.ByteCount) for receiving // returns 0 if no update is necessary ( StreamFlowController) IsNewlyBlocked() bool for sending UpdateHighestReceived is called when a new highest offset is received final has to be to true if this is the final offset of the stream, as contained in a STREAM frame with FIN bit, and the RESET_STREAM frame ( StreamFlowController) UpdateSendWindow(protocol.ByteCount) (updated bool) func NewStreamFlowController(streamID protocol.StreamID, cfc ConnectionFlowController, receiveWindow protocol.ByteCount, maxReceiveWindow protocol.ByteCount, initialSendWindow protocol.ByteCount, rttStats *utils.RTTStats, logger utils.Logger) StreamFlowController
Package-Level Functions (total 2)
NewConnectionFlowController gets a new flow controller for the connection It is created before we receive the peer's transport parameters, thus it starts with a sendWindow of 0.
NewStreamFlowController gets a new flow controller for a stream