Class RubyTorrent::Block
In: lib/rubytorrent/package.rb
Parent: Object

Blocks are very simple chunks of data which exist solely in memory. they are the basic currency of the bittorrent protocol. a Block can be divided into "chunks" (no intelligence there; it‘s solely for the purposes of buffered reading/writing) and one or more Blocks comprises a Piece.

Methods

Attributes

begin  [RW] 
data  [RW] 
length  [RW] 
pindex  [RW] 
requested  [RW] 

Public Class methods

Public Instance methods

chunk can only be added to blocks in order

[Validate]