Jump to content

Local Peer Discovery Documentation


Louif

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.

Link to comment
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.

Link to comment
Share on other sites

  • 4 weeks later...
  • 5 years later...

Archived

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

×
×
  • Create New...