Discussion:
[libtorrent] flag_update_subscribe
Calum Lind
2016-05-26 20:44:10 UTC
Permalink
Hi Arvid,

I saw you mention flag_update_subscribe for add_torrent_params and I was
curious of it's intended usage? I assume it can't be changed after the
torrent is added?

Thanks,

Calum
Arvid Norberg
2016-05-30 23:43:26 UTC
Permalink
Post by Calum Lind
Hi Arvid,
I saw you mention flag_update_subscribe for add_torrent_params and I was
curious of it's intended usage? I assume it can't be changed after the
torrent is added?
Looking back at when this feature was introduced (especially here
http://blog.libtorrent.org/2011/11/scalable-interfaces/ ), I can't recall
if I had any specific use case in mind. I'm guessing that I wanted to leave
the option open to have some "special" torrents that aren't polled
frequently.

As far as I can tell, there's no way to flip the subscription flag after
the torrent has been added. If there was a way, it would probably fit
*filters* really well. If you could get updates only for torrents visible
in the UI, it would make things very efficient I'm guessing.

I've been planning to simplify the interface to torrent_handle in master,
to have a set_flag() and a clear_flag() function, that would take flags
from add_torrent_params (to replace all the individual pause(), resume(),
set_share_mode(), apply_ip_filter(), etc.). That would be a perfect
opportunity to make this flag mutable as well.

https://github.com/arvidn/libtorrent/blob/master/include/libtorrent/torrent_handle.hpp#L237
--
Arvid Norberg
Loading...