Ultraforce Posted April 3, 2010 Report Share Posted April 3, 2010 This is in regard with a plugin that I am developing. Let us hypothetically assume that I know of a peer that is seeding a file that I want but for some reason the bittorrent client does not find it during the stage of peer discovery. But if I know the IP address and the port on which a peer is seeding the file, is it possible for me to initiate a bittorrent handshake with the client to determine if he installed my plugin? For instance, if the supported messages contains "CUSTOM", then I will know that the user's client installed my plugin. Is this possible programatically? Link to comment Share on other sites More sharing options...
Ultima Posted April 3, 2010 Report Share Posted April 3, 2010 There is no difference between a peer manually inserted into the peer list, and a peer returned as part of an automatic discovery mechanism (trackers, DHT, PEX, LPD, etc) other than the fact that the former is not automated. If your extension is reported during handshake, then there's no reason it wouldn't be reported in a manual connect. Link to comment Share on other sites More sharing options...
Ultraforce Posted April 3, 2010 Author Report Share Posted April 3, 2010 For some reason, it doesn't appear to find the peer itself. What I mean by this is that though I am currently seeding the file, my IP still does not appear in the list so I proceeded to manually insert it. I am pretty sure my plugin is buggy at the moment but is there a way to determine the list of messages without using uTorrent? For instance, writing a small handshake client in C that connects to a given peer and returns me with a list of supported messages? Link to comment Share on other sites More sharing options...
Ultima Posted April 5, 2010 Report Share Posted April 5, 2010 ... Just initiate a normal handshake, parse the replies, and disconnect after the handshake completes. Not sure what else you're looking for. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.