requestBandwidth

fun requestBandwidth(peer: BandwidthSocket, blk: Int, priority: Int, chans: List<BandwidthChannel>): Int

Requests blk bytes for peer across the given chans, at priority (1 = normal). Faithful to bandwidth_manager::request_bandwidth:

A return of 0 while aborting means the manager is shutting down and nothing will be assigned.