BwRequest
One consumer's outstanding bandwidth request: pure-Kotlin port of libtorrent's bw_request (aux_/bandwidth_queue_entry.hpp, bandwidth_queue_entry.cpp).
A request asks for requestSize bytes on behalf of peer, competing at the given priority (1 is normal). It belongs to up to MAX_BANDWIDTH_CHANNELSs, the channels that need to ration it (its own limit, its torrent's, the global one, …). The BandwidthManager accumulates assigned bytes across rounds until it reaches requestSize or ttl runs out, then fires the consumer's assignBandwidth callback.
Properties
The channels rationing this request, in order. libtorrent uses a fixed array of 10 slots terminated by a null; a list of at most MAX_BANDWIDTH_CHANNELS is the faithful equivalent.
The consumer awaiting bandwidth.
Total bytes requested. (request_size)