从我得到了peerlist并建立了到peer的tcp连接,我试图向他们发送握手消息,但他们似乎没有响应。在
以下是我的留言:
message = bytes(chr(19))+"BitTorrent protocol00000000"+self.getInfoHash(torrentCont)+self.peer_id
在self.getInfoHash(torrentCont)是torrent文件中的原始哈希
这就是我要传达的事实:
^{pr2}$
有什么关于我做错什么的建议吗?在
Tags:
你混淆了字节和字符。规范要求您发送8个空字节,而不是8倍于字符“0”(即chr(48)):
相关问题 更多 >
编程相关推荐