Jump to content

Got Stunk At Peer Wire Protocol!


Recommended Posts

Hello all,


I want to create a simple BitTorrent client so i started at reading the specification and i understood it :)


I implemented the tracker protocol and it works fine, but got stunk at peer wire protocol.

After the tracker responds to me with the list of clients i send them the handshake but they don't respond to me !!!!!


i've used wireshark to see how other clients how they do the job, but isn't different from mine, so i tried to take the handshake which Vuze uses it and writing in it in file using Hex editor then sending it to the client using netcat, but the same result i don't get any response from the peer and the connection closes immediately !!!!


this is my handshake which i send to the peer, i already know that the peer has the file:

13 42 69 74 54 6F 72 72 65 6E 74 20 70 72 6F 74 6F 63 6F 6C 00 00 00 00 00 00 00 00 52 21 82 7B 81 C2 5F A5 9D BA 6A D6 42 86 08 9E 60 E1 0C F4 2D 41 5A 34 33 30 36 2D 44 69 68 58 53 4F 32 6E 6C 35 71 32

Can anyone tells me where is the problem?? :)


Thank you :)

Link to comment
Share on other sites


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

  • Create New...