BitTorrent in JavaScript with Node

A few months ago I tried to make a bittorrent client in javascript. But a few days after it started, I found out that there were already other projects with the same goal. The most complete of them was summerTorrent. However, though (I thought) it was so insanely close, it wasn’t finished. So anyway, I made a few changes that at least made basic torrenting functionality working.

summerTorrent

Posted in P2P.

Tagged with , , , , .

7 comments

By admin August 29, 2010


7 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Nils says

    Why didn’t you send a pullrequest back to upstream? Or did it just get declined?

    June 24, 2011, 7:48 am
  2. admin says

    A lot of it was really hacky, I don’t think it’s worthy of getting upstream.

    June 24, 2011, 1:46 pm
  3. Lorenz says

    to check for a Object type in JS use its constructor.

    In your case (bencoding.js), you can use
    o.constructor === Array
    > true

    instead of this, which involves more overhead:

    Object.prototype.toString.call(o) == ‘[object Array]‘

    also be aware of fallacy of the logical operators in JS, like !!; ===, !== etc… vs !,==,!=

    August 24, 2011, 4:10 pm
  4. Lorenz says

    to check for a Object type in JS use its constructor.

    In your case (bencoding.js), you can use
    o.constructor === Array
    > true

    instead of this, which involves more overhead:

    Object.prototype.toString.call(o) == ‘[object Array]‘

    also be aware of fallacy of the logical operators in JS, like !!; ===, !== etc… vs !,==,!=

    PS: Good work

    August 24, 2011, 4:10 pm
  5. coyo says

    oh, this is really cool! keep up the good work! i want to see full functionality with this! please!

    Also, setup a flattr, so i can flattr you.

    April 14, 2012, 3:21 am
  6. Payday Loan Vancouver Bc says

    What’s up Dear, are you really visiting this site on a regular basis, if so
    then you will without doubt take pleasant knowledge.

    April 2, 2014, 10:36 pm
  7. auto title loans says

    My relatives always say that I am wasting my time here at web, but
    I know I am getting know-how daily by reading thes good posts.

    May 8, 2014, 10:50 pm



Some HTML is OK

or, reply to this post via trackback.



AltStyle によって変換されたページ (->オリジナル) /