expose bandwidth_mixed_algo constants to python

This commit is contained in:
Arvid Norberg 2011-06-22 01:16:53 +00:00
parent c390dd5858
commit 4d950285d1
1 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,11 @@ void bind_session_settings()
.value("disable_os_cache", session_settings::disable_os_cache)
;
enum_<session_settings::bandwidth_mixed_algo_t>("bandwidth_mixed_algo_t")
.value("prefer_tcp", session_settings::prefer_tcp)
.value("peer_proportional", session_settings::peer_proportional)
;
class_<proxy_settings>("proxy_settings")
.def_readwrite("hostname", &proxy_settings::hostname)
.def_readwrite("port", &proxy_settings::port)