[bittorrent] about handshake in peer wire protocol..

FYP 2005 hkucsfyp2005 at gmail.com
Thu Oct 6 03:25:40 EDT 2005


im trying to connect to peer to get his bitfield...
i send the handshake to him like the following (using JAVA):
  os.writeByte(19);
os.writeBytes("BitTorrent protocol");
os.writeByte(0);
os.writeByte(0);
os.writeByte(0);
os.writeByte(0);
os.writeByte(0);
os.writeByte(0);
os.writeByte(0);
os.writeByte(0);
os.writeBytes(hash_info);
os.writeBytes(peer_id);
 but i just can't get any response from him...
can anyone give me some idea wt i've done wrong?
thx~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ibiblio.org/pipermail/bittorrent/attachments/20051006/1c0d6466/attachment.html 


More information about the BitTorrent mailing list