«

»

Damnit, you bad documentation!!!

I’m a bit upset… just a teensy weensy bit upset.

Why is there that there can’t be any good documentation for that a tracker should respond and in exactly what format. Have been going nuts these last hours, so I finally started to sniff the network traffic going in and out of my computer. All this work, but atleast now I know how a “normal” response from a tracker should look like. For those interested here is the layout


array(
'interval' => 1800, // announce interval in seconds
'peers' => array(
array(
'ip' => '127.0.0.1', // the IP of a peer
'peer id' => '-UT1610-....................', // the peer id (torrent program generates this, . = random value)
'port' => 12345 // the port this peer is listening to
),
array(
'ip' => '10.0.0.1',
'peer id' => '-AZ2500-....................',
'port' => 54321
)
)
)

Now that wasn’t so hard, WAS IT????

(and then you of course bencode it to a single string…)

1 ping

  1. computer - somdaj.com » Damnit, you bad documentation!!!

    […] post by Home to Linus Lejon Isaksson and software by Elliott Back […]

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>