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#
| Attribute | Type | Description |
|---|---|---|
capacity | int = 1024 | |
strategy | Literal['dropping', 'sliding'] = 'dropping' |
Functions#
__init__#
__init__(capacity=1024, strategy='dropping') -> None| Parameter | Type | Description |
|---|---|---|
capacity | int = 1024 | |
strategy | Literal['dropping', 'sliding'] = 'dropping' |