【问题标题】:Libtorrent Logging through python bindings, possible?Libtorrent 通过 python 绑定进行日志记录,可能吗?
【发布时间】:2012-05-18 22:14:49
【问题描述】:

我注意到 Rasterbar/Libtorrent 页面提到了“详细记录 DHT 协议流量”的可能性

http://www.rasterbar.com/products/libtorrent/building.html

有谁知道它是否可能与 python 绑定有关?

干杯!

【问题讨论】:

    标签: python bittorrent dht libtorrent


    【解决方案1】:

    根据我在 C++ 源代码中阅读的内容,使用 dht 日志记录进行编译只会将库日志记录到一个文件 (dht.log) 中,而且在此之上似乎没有任何 API。

    现在,您可能需要查看位于 libtorrent 源代码分发根目录的 parse_dht_log.py 文件 - 根据您想要执行的操作,这可能会帮助您开始解析该日志文件。

    希望这会有所帮助。

    【讨论】:

    • 是的,这是一个构建选项,主要用于调试
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-11
    • 2018-07-16
    • 1970-01-01
    • 2011-05-20
    • 2012-03-10
    相关资源
    最近更新 更多