QBlockRecovery

class QBlockRecovery(val peer: Endpoint, val isRequestedByPeer: Boolean, val blocks: List<Long>) : EndpointEvent(source)

Missing blocks of a Q-Block body (RFC 9177 §4.3, §4.4, §5) were asked for, by a server or a client with Q-Block on. isRequestedByPeer is true when peer asked, with a 4.08 Request Entity Incomplete listing blocks of an upload or a request for missing Q-Block2 blocks of a response, and this endpoint sends blocks again; false when this endpoint asked peer for blocks the same ways. Many of these towards one peer show a lossy path, for which RFC 9177 §7.2 suggests a smaller MAX_PAYLOADS.

Constructors

Link copied to clipboard
constructor(peer: Endpoint, isRequestedByPeer: Boolean, blocks: List<Long>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val peer: Endpoint

The peer the event concerns.

Functions

Link copied to clipboard
open override fun toString(): String