[BitTorrent] peer protocol question

Justin Cormack justin at street-vision.com
Thu Jun 24 15:32:34 EDT 2004

On Wed, 2004-06-23 at 12:28, Justin Cormack wrote:
> Can someone help me here, as I think I am doing something a little wrong.
> I am implementing the peer protocol now, and I am not quite sure how it
> goes from reading the spec.
> Everything up to and including handshake with the peer goes fine.
> If I send nothing (not even bitfield), I get a bitfield from the peer
> (which has all the file and is running the standard client), and then
> I can keep the connection alive by pinging occasionally, and receive
> pings.
> If I write the bitfield, then nothing happens until I send a ping, when I
> get disconnected. If I send interested the same happens.
> Can someone give me an example of what a typical exchange should look like?

Its ok, I fixed it after looking at the tcp traffic - it was a bug...


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70

Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> To unsubscribe from this group, send an email to:
     BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

More information about the BitTorrent mailing list