johang / btfs

A bittorrent filesystem based on FUSE.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clarify if this shares files

anarcat opened this issue · comments

it is unclear from the description if this tool actually starts sharing files once they are downloaded locally. it would be great to have more information about how this is implemented, basically - which library is running in the back, does it stream files and generally how it works and so on.

To answer your questions:

  1. Yes, it shares as long as it's mounted.
  2. It uses libtorrent (http://www.libtorrent.org/)
  3. BTFS maintains a sliding window of pieces (https://en.wikipedia.org/wiki/Sliding_window_protocol). When a program reads a file, this window will be moved to that offset. The window will be moved forward when pieces finish.