Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AlgorithmsMeetup/BitTorrent

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
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

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.