简体   繁体   中英

Libtorrent: how can I get all torrent handles associated with a session?

If I have added multiple torrents in a session, is there any way I can get all the handles from that session ?

For eg.

h1 = ses.add_torrent(params)
h2 = ses.add_torrent(params)
h3 = ses.add_torrent(params)

is session has any method which can give me the list of all the handles associated with that session. like.

li=sess.get_all_handles()

会话对象上有一个名为get_torrents()的函数,该函数返回所有torrent_handles的向量。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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