Cherry pick peers using Rasterbar libtorrent in Python

我是研究僧i 提交于 2019-12-02 13:17:41

问题


Does anyone know if it's possible to cherry pick peers to connect with using libtorrent? That is, after the tracker returns a list of peer IPs and ports, only a selected few will be connected with based on some defined criteria.

Thanks


回答1:


you can remove peers from the set using set_ip_filter(). you can add peers to the set by using connect_peer(). That's about all the control you have. The priority of which peers from the set to connect to in which order is hard coded.



来源:https://stackoverflow.com/questions/26886154/cherry-pick-peers-using-rasterbar-libtorrent-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!