add torrent priority to adjust bandwidth allocation of torrent's peers
This commit is contained in:
@@ -313,6 +313,7 @@ void bind_torrent_handle()
|
||||
.def("pause", _(&torrent_handle::pause))
|
||||
.def("resume", _(&torrent_handle::resume))
|
||||
.def("clear_error", _(&torrent_handle::clear_error))
|
||||
.def("set_priority", _(&torrent_handle::set_priority))
|
||||
|
||||
.def("is_auto_managed", _(&torrent_handle::is_auto_managed))
|
||||
.def("auto_managed", _(&torrent_handle::auto_managed))
|
||||
|
@@ -78,6 +78,7 @@ void bind_torrent_status()
|
||||
.def_readonly("seed_rank", &torrent_status::seed_rank)
|
||||
.def_readonly("last_scrape", &torrent_status::last_scrape)
|
||||
.def_readonly("error", &torrent_status::error)
|
||||
.def_readonly("priority", &torrent_status::priority)
|
||||
;
|
||||
|
||||
enum_<torrent_status::state_t>("states")
|
||||
|
Reference in New Issue
Block a user