Changes between Version 2 and Version 3 of Plan/libtorrent
- Timestamp:
- 05/15/2013 01:15:27 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Plan/libtorrent
v2 v3 38 38 * external_ip_alert 39 39 40 == Other potential changes == 41 * #367 Do not store per-torrent settings that are saved in the resume data [[br]] 42 Could be extended to included deluge torrent settings in resume data removing need for torrents.state 43 * Replace add_torrent with the more efficient non-blocking async_add_torrent. 44 * lt docs suggestion: ''If possible, lazy_bdecode() should be preferred over bdecode().'' 45 40 46 == Deprecated Functions == 41 47 … … 43 49 44 50 To test use libtorrent build with TORRENT_NO_DEPRECATE config. 45 46 Note: Look to apply lt docs suggestion: ''If possible, lazy_bdecode() should be preferred over bdecode().''47 51 48 52 === magnet_uri.cpp === … … 92 96 }}} 93 97 94 '''preferencesmanager.py''' - verify if change needed 95 {{{ 96 .def("start_dht", allow_threads(start_dht1)) 97 }}} 98 99 '''core.py''' - now stored in session state using flags 98 '''core.py''' - stored in session state using save_dht_state flag. This is enabled by default so methods can be removed. 100 99 {{{ 101 100 .def("dht_state", allow_threads(&session::dht_state)) … … 125 124 .def("set_max_half_open_connections", allow_threads(&session::set_max_half_open_connections)) 126 125 }}} 127 '''core.py''' - session.num_connections() -> handle.status().num_connections126 '''core.py''' - session.num_connections() -> session_status.num_peers 128 127 {{{ 129 128 .def("num_connections", allow_threads(&session::num_connections)) … … 135 134 }}} 136 135 137 '''core.py, preferencesmanager.py''' - may require forced deprecated, see &session_get_settings in session.cpp [[br]] 138 For backwards compatibility, session::settings() still returns a session_settings struct. To get a python dictionary of the settings, call session::get_settings. 136 '''core.py, preferencesmanager.py''' - For the python bindings use session.get_settings() 139 137 {{{ 140 138 .def("settings", &session::settings) 141 139 }}} 142 140 143 '''core.py''' - change lt.bdecode in load_state to lt.lazy_bdecode to use new load_state which expects lazy_entry 141 '''core.py''' - change lt.bdecode in load_state to lt.lazy_bdecode to use new load_state which expects lazy_entry '''(lazy_bdecode missing from bindings)''' 144 142 {{{ 145 143 .def("load_state", load_state1) … … 164 162 165 163 === torrent_info.cpp === 166 '''oldstateupgrader.py, torrentmanager.py''' - torrent_info.info_hash() -> torrent_handle.info_hash()164 '''oldstateupgrader.py, torrentmanager.py''' - This probably shouldn't be deprecated 167 165 {{{ 168 166 .def("info_hash", &torrent_info::info_hash, copy)