Class RubyTorrent::PieceOrder
In: lib/rubytorrent/controller.rb
Parent: Object

keeps pieces in order

Methods

dec_all   each   inc   inc_all   new  

Constants

POP_RECALC_THRESH = 20
POP_RECALC_LIMIT = 30   (expensive sort) when this number of pieces have arrived at any of the peers, OR:

Public Class methods

at least one piece has changed in popularity, or if we‘re in fuseki mode.

Public Instance methods

increment the popularity of a piece

increment the popularity of multiple pieces

[Validate]