Skip to content

AlgorithmsMeetup/BitTorrent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#BitTorrent

Reading:

API:

  • askForSeeds get('http://localhost:7000/seeds') // Returns list of peer urls from tracker.

  • registerAsPeer get('http://localhost:7000/seed/add') // Adds url to tracker's list of peers.

  • askAboutAvailablePiecesFrom get('http://localhost:7002/pieces') // Returns array of SHAs that seed has.

  • requestPiece get('http://localhost:7002/piece/3453985493') // Returns the piece for that SHA.

Basic Client Functionality:

  • Get peers from tracker
  • Find out what SHAs the peers have
  • Filter out unneeded SHAs
  • Request the pieces needed
  • Assemble the data into the complete file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages