Archived

This topic is now archived and is closed to further replies.

ZonD80

DHT on PHP

Recommended Posts

Hello, is it possible to implement DHT requests via PHP?

I have a bittorrent tracker, which uses multitracker+retracker features... and i want to receive DHT peers into my announce...

Share this post


Link to post
Share on other sites

> is it possible to implement DHT requests via PHP?

It's certainly possible, but you definitely don't want to reimplement the DHT.

Since PHP is able to link with C, you'll be better served by using an existing implementation of the DHT. There's a portable, documented and free implementation available on

http://www.pps.jussieu.fr/~jch/software/files/

(It's the one used in Transmission.)

--Juliusz

Share this post


Link to post
Share on other sites