繁体   English   中英

如何在Java中抓取udp BitTorrent跟踪器?

[英]How can I scrape a udp BitTorrent tracker in Java?

我发送了一个抓取的数据包,播种机,下载器和水手始终返回0。

这是我的初始连接和刮板代码。

public void scrape() {
        for (final String infohash : infoHashes) {
            hashes += infohash;
        }
        outStream.writeByte(hashes.getBytes());

}

例如我的输出是

3617635676834215396 0

 for (final String infohash : infoHashes) { hashes += infohash; } outStream.writeByte(hashes.getBytes()); 

我的猜测是您正在使用十六进制编码的哈希。 UDP抓取期望它们采用原始格式。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM