与peer建立tcp连接后,首先发送handshake消息进行握手 handshake消息格式如下: 一个字节0x19 + 一个字符串'BitTorrent protocol' + 8 byte 保留字节默认值为0(draft中对保留字节有定义) + 种子文件中info 部分的sha1字,大小为20 Read More
posted @ 2016-11-10 23:00 godjob Views(1663) Comments(0) Diggs(0) Edit