GithubHelp home page GithubHelp logo

storrent's People

Contributors

sjaensch avatar veggiedefender avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

icodein

storrent's Issues

Second command line argument should be target directory, not file

Currently, the second argument passed on the command line is the path and file name where the downloaded data of the torrent passed as argument one are written to. The second argument should be a directory instead, and inside the directory the files and subdirectories according to the torrent metadata should be created and written to.

Initialize DHT with nodes from torrent file

A trackerless torrent does not have an announce key, instead it has a nodes key. Let's use it to initialize our DHT. From the BEP:

nodes = [["<host>", <port>], ["<host>", <port>], ...]
nodes = [["127.0.0.1", 6881], ["your.router.node", 4804], ["2001:db8:100:0:d5c8:db3f:995e:c0f7", 1941]]

Populate routing table with closest nodes to self

From the BEP:

Upon inserting the first node into its routing table and when starting up thereafter, the node should attempt to find the closest nodes in the DHT to itself. It does this by issuing find_node messages to closer and closer nodes until it cannot find any closer.

We'll need to do #4 for this.

Implement support for node status (good, questionable, bad)

We need to track the status of all nodes in our DHT. That means keeping track of when nodes answered queries we sent it, and being able to actively ping a node to make sure it's good.

This ticket does not involve making sure we give priority to good nodes.

Find best node for given torrent infohash

When looking for peers for a given infohash we need to walk the DHT and find the closest node (the node which ID most closely matches the torrent infohash). We need to do this by repeatedly calling find_node on the closest nodes in our routing table, and adding the results to our table.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.