Jump to content

Peer exchange flow

Recommended Posts


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


Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...


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

  • Create New...