flowcontrol

package
v0.0.0-...-1e9be1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowController

type FlowController interface {
	AddBytesSent(n protocol.ByteCount)
	UpdateSendWindow(newOffset protocol.ByteCount) bool
	SendWindowSize() protocol.ByteCount
	UpdateHighestReceived(byteOffset protocol.ByteCount) protocol.ByteCount
	IncrementHighestReceived(increment protocol.ByteCount)
	AddBytesRead(n protocol.ByteCount)
	MaybeTriggerBlocked() bool
	MaybeTriggerWindowUpdate() (bool, protocol.ByteCount)
	CheckFlowControlViolation() bool
	GetHighestReceived() protocol.ByteCount
}

A FlowController handles the flow control

func NewFlowController

func NewFlowController(streamID protocol.StreamID, connectionParametersManager *handshake.ConnectionParametersManager) FlowController

NewFlowController gets a new flow controller

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL