File
storage.rb
Path: ../lib/net/bittorrent/storage.rb
Modified: Mon Sep 20 11:20:24 EDT 2004

NAME

  Net::BitTorrent::Storage

Introduction

 Storage class wraps real storages and offers an interface to access
 to those files like a stream.

 [ piece ][ piece ][ piece ][  ]  ... bittorrent pieces
 [ file A ... ][ file B ...... ]  ... real file storage

EXAMPLES

How to generate ‘pieces’

How to get BitField

How to download/upload files(pieces)

 In BitTorrent peer-wire protocol, Request pieces.
 and MetaInfo has the information to map piece to files.
 In protocol layer, You do not need to care what

 request:
   REQUEST <index><offset><length>

 responce:
   PIECE <index><offset><subpiece: storage.read(index, offset, length))>

NOTES

AUTHORS

Author:Ikkei Shimomura
Project WebSite:aversa.rubyforge.org
Required files

digest/sha1
Classes and Modules

Module Net
  ::Module Net::BitTorrent
  ::  ::Class Net::BitTorrent::Storage