【问题标题】:Libtorrent Block Upload AlertLibtorrent 块上传警报
【发布时间】:2021-06-19 21:49:33
【问题描述】:

我需要将计费嵌入到 libtorrent 中。所以我需要知道节点 B 何时成功将块上传到节点 A。但是根据 libtorrent 文档,当打算发送给对等方的块被放置在发送缓冲区中时,会发布警报 block-uploaded-alert。因此,实际上发布此警报时,该块尚未上传。有没有办法知道上传是否成功?

附:可以限制同时上传到同一个peer的block数量吗?

【问题讨论】:

    标签: libtorrent


    【解决方案1】:

    我正在处理类似的问题。根据我的发现,libtorrent 中还没有这个用例的实现。 arvid(Libtorrent 的创建者)在这个问题中的回答:Get alerts for upload activity with libtorrent (rasterbar) 可能会给我们一些关于如何实现这一点的提示。

    由于我期待实现这一点,我愿意讨论它,并可能在 libtorrent 存储库上进行 PR 以实现它:https://github.com/arvidn/libtorrent/issues/6247

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-14
      • 2023-04-06
      • 2019-02-21
      • 2021-05-27
      • 2021-04-10
      • 2021-04-14
      相关资源
      最近更新 更多