Class MultiPeerUploader

java.lang.Object
com.biglybt.core.networkmanager.impl.MultiPeerUploader
All Implemented Interfaces:
RateControlledEntity

public class MultiPeerUploader extends Object implements RateControlledEntity
A rate-controlled write entity backed by multiple peer connections, with an emphasis on transmitting packets with full payloads, i.e. it writes to the transport in mss-sized chunks if at all possible. It also employs fair, round-robin write scheduling, where connections each take turns writing a single full packet per round.
  • Field Details

  • Constructor Details

    • MultiPeerUploader

      public MultiPeerUploader(RateHandler rate_handler)
      Create a new packet-filling multi-peer upload entity, rate-controlled by the given handler.
      Parameters:
      rate_handler - listener to handle upload rate limits
  • Method Details