Add 'cache_size' and 'cache_expiry' session settings to the python bindings

This commit is contained in:
Andrew Resch 2009-05-31 19:34:59 +00:00
parent 3e7bd46706
commit 75d06a7a64
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ void bind_session_settings()
.def_readwrite("peer_tos", &session_settings::peer_tos) .def_readwrite("peer_tos", &session_settings::peer_tos)
.def_readwrite("rate_limit_ip_overhead", &session_settings::rate_limit_ip_overhead) .def_readwrite("rate_limit_ip_overhead", &session_settings::rate_limit_ip_overhead)
.def_readwrite("outgoing_ports", &session_settings::outgoing_ports) .def_readwrite("outgoing_ports", &session_settings::outgoing_ports)
.def_readwrite("cache_size", &session_settings::cache_size)
.def_readwrite("cache_expiry", &session_settings::cache_expiry)
#ifndef TORRENT_DISABLE_DHT #ifndef TORRENT_DISABLE_DHT
.def_readwrite("use_dht_as_fallback", &session_settings::use_dht_as_fallback) .def_readwrite("use_dht_as_fallback", &session_settings::use_dht_as_fallback)
#endif #endif