upload_only=3在扩展的BitTorrent握手中意味着什么



我需要帮助来理解upload_only=3在扩展BitTorrent握手中的含义。

我知道http://www.bittorrent.org/beps/bep_0021.html,根据它的说法,扩展握手可以像:

{m: {ut_pex=1, ut_metadata=2}, upload_only=1, metadata_size=31236}

但我看到握手像

{m: {ut_pex=1, ut_metadata=2, upload_only=3}, metadata_size=31236}

更重要的是,我看到了像一样的握手

{m: {ut_pex=1, ut_metadata=2, upload_only=3}, upload_only=1, metadata_size=31236}

有人能解释一下upload_only=3在扩展BitTorrent握手中的含义吗?

upload_only=3在扩展握手中的m消息字典中
这意味着扩展消息id=3的扩展消息被定义为upload_only消息。

不幸的是,BEP21并没有反映出upload_only在实践中是如何实现的。应该弃用它,并用更好的替代它。

从我对另一个问题的回答来看:

附录:
uTorrent和大多数其他客户端实现的upload_only与此处解释的"过时"规范不同alus=Greg Hazel
它被定义为扩展消息的扩展握手中是1字节的消息数据意味着:0x00=false<任何其他>=true。这可以通过使用Wireshark进行验证。

最新更新