GitHub

ReceiveBuffer

API reference for ReceiveBuffer.

The receive queue: at most capacity packets. When it is full, "dropping" discards the incoming packet and "sliding" the oldest queued one; both count in Reader.dropped().

Attributes

AttributeTypeDescription
capacityint = 1024
strategyLiteral['dropping', 'sliding'] = 'dropping'

Functions

__init__

__init__(capacity=1024, strategy='dropping') -> None
ParameterTypeDescription
capacityint = 1024
strategyLiteral['dropping', 'sliding'] = 'dropping'