[bittorrent] download piece

Amir Almasi amir.fireflame at gmail.com
Mon Nov 14 15:26:39 EST 2011


Hi all,
I have a problem with sending the messages after handshake

Handshaking works properly and has been tested, also the peer does the
handshake as well.
The problem is, when I send the request message ( request:
<len=0013><id=6><index><begin><length> ) the receive would be an error
which is

( in binary -- <<0,0,0,138,5,255,186,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,255,255,255,255,255,

 255,255,255,255,255,255,255,128,0,0,0,5,4,0,0,0,

 13,0,0,0,5,4,0,0,0,9,0,0,0,5,4,0,0,0,15,0,0,0,1,1>> )

Should I send the bitfield message at first even I have no peace to share?

Regrads,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ibiblio.org/pipermail/bittorrent/attachments/20111114/29f33f61/attachment.html 


More information about the BitTorrent mailing list