Archived

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

Louif

Local Peer Discovery Documentation

Recommended Posts

http://download.utorrent.com/utorrent-help.zip and search for LPD:

LPD (Local Peer Discovery)

A method by which µTorrent attempts to discover new peers local relative to your computer's network. Local Peer Discovery makes use of IP multicast.

And some googling:

http://www.superjason.com/archive/2007/08/14/local-peer-discovery-best-new-utorrent-feature.aspx

http://www.bittorrent.com/btusers/guides/bittorrent-user-manual/appendix-bittorrent-mainline-interface/preferences/bittorrent#Basic_BitTorrent_Features.Enable_Local_Peer_Discovery

And why should that feature be interchangeable?

It just indicates peers within you network by IP or ISP.

Share this post


Link to post
Share on other sites

... Louif isn't asking what LPD is -- he's asking for implementation details on LPD so that other clients can also implement it.

@Louif: There are no public specs that I know of.

Share this post


Link to post
Share on other sites

in short: join the multicast group 239.192.152.143:6771 and listen for SSDP messages. Every 5 minutes, announce yourself to the multicast group by sending this message:

snprintf(msg, 200,

"BT-SEARCH * HTTP/1.1\r\n"

"Host: 239.192.152.143:6771\r\n"

"Port: %d\r\n"

"Infohash: %s\r\n"

"\r\n\r\n", listen_port, ih_hex);

listen port is the port you accept incoming bittorrent connections on, ih_hex is the info hash of the torrent hex encoded.

more details:

http://libtorrent.svn.sourceforge.net/viewvc/libtorrent/trunk/src/lsd.cpp?revision=3919&view=markup

If you'd like to write a BEP for this (to be published on bittorrent.org), please send it to editor@bittorrent.org and I can put it up.

Share this post


Link to post
Share on other sites

Not necessarily an excuse, but to be fair...

--- 2007-04-05: Version 1.7 (build 1065)

- Feature: Local Peer Discovery

Created: 10-May-2008

Share this post


Link to post
Share on other sites