[bittorrent] about handshake in peer wire protocol..

Olaf van der Spek olafvdspek at gmail.com
Thu Oct 6 04:10:35 EDT 2005


On 10/6/05, FYP 2005 <hkucsfyp2005 at gmail.com> wrote:
> 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~

Did you check with a network sniffer what exactly is send?



More information about the BitTorrent mailing list