Archived

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

dwatransit

Peer exchange flow

Recommended Posts

Hi,

I am trying to make a client in java in order to understand protocol better.

I have a simple program that connects to a torrent and handshakes with a peer. I have received the handshake message that includes the "ut_pex=1".

I wait for message that contains peer list but nothing happens. Do I need to send a peer list message first? (I don't because I have no peers yet.) I still have the socket that I started the conversation on. Do I just need to wait for something to happen?

I wish there was a flow chart of how this works somewhere.

Than you

Tran

Share this post


Link to post
Share on other sites

Sorry, but I'm no help for deciphering a wireshark log.

And good luck keeping the number of packets LOW enough to matter!

Share this post


Link to post
Share on other sites