Changes between Version 2 and Version 3 of Plan/libtorrent


Ignore:
Timestamp:
05/15/2013 01:15:27 AM (9 years ago)
Author:
Cas
Comment:

corrections and updates

Legend:

Unmodified
Added
Removed
Modified
  • Plan/libtorrent

    v2 v3  
    3838 * external_ip_alert 
    3939 
     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  
    4046== Deprecated Functions == 
    4147 
     
    4349 
    4450To 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().'' 
    4751 
    4852=== magnet_uri.cpp === 
     
    9296}}} 
    9397 
    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. 
    10099{{{ 
    101100        .def("dht_state", allow_threads(&session::dht_state)) 
     
    125124        .def("set_max_half_open_connections", allow_threads(&session::set_max_half_open_connections)) 
    126125}}} 
    127 '''core.py''' - session.num_connections() -> handle.status().num_connections 
     126'''core.py''' - session.num_connections() -> session_status.num_peers 
    128127{{{ 
    129128        .def("num_connections", allow_threads(&session::num_connections)) 
     
    135134}}} 
    136135 
    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() 
    139137{{{ 
    140138        .def("settings", &session::settings) 
    141139}}} 
    142140 
    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)''' 
    144142{{{ 
    145143        .def("load_state", load_state1) 
     
    164162 
    165163=== 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 
    167165{{{ 
    168166        .def("info_hash", &torrent_info::info_hash, copy)