Package-level declarations

Types

Link copied to clipboard

A single token bucket. This is a pure-Kotlin port of libtorrent's bandwidth_channel (aux_/bandwidth_limit.hpp, bandwidth_limit.cpp).

Link copied to clipboard
class BandwidthManager(channel: Int)

Schedules bandwidth fairly across competing consumers. This is a pure-Kotlin port of libtorrent's bandwidth_manager (aux_/bandwidth_manager.hpp, bandwidth_manager.cpp).

Link copied to clipboard
interface BandwidthSocket

The callback surface a bandwidth consumer exposes to a BandwidthManager: pure-Kotlin port of libtorrent's bandwidth_socket (aux_/bandwidth_socket.hpp).

Link copied to clipboard
class BwRequest(val peer: BandwidthSocket, val requestSize: Int, val priority: Int)

One consumer's outstanding bandwidth request: pure-Kotlin port of libtorrent's bw_request (aux_/bandwidth_queue_entry.hpp, bandwidth_queue_entry.cpp).