MCPcopy Create free account
hub / github.com/arvidn/libtorrent / bind_session_settings

Function bind_session_settings

bindings/python/src/session_settings.cpp:12–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace lt;
11
12void bind_session_settings()
13{
14 enum_<settings_pack::choking_algorithm_t>("choking_algorithm_t")
15 .value("fixed_slots_choker", settings_pack::fixed_slots_choker)
16#if TORRENT_ABI_VERSION == 1
17 .value("auto_expand_choker", settings_pack::rate_based_choker)
18#endif
19 .value("rate_based_choker", settings_pack::rate_based_choker)
20#if TORRENT_ABI_VERSION == 1
21 .value("bittyrant_choker", settings_pack::bittyrant_choker)
22#endif
23 ;
24
25 enum_<settings_pack::seed_choking_algorithm_t>("seed_choking_algorithm_t")
26 .value("round_robin", settings_pack::round_robin)
27 .value("fastest_upload", settings_pack::fastest_upload)
28 .value("anti_leech", settings_pack::anti_leech)
29 ;
30
31 enum_<settings_pack::mmap_write_mode_t>("mmap_write_mode_t")
32 .value("always_pwrite", settings_pack::always_pwrite)
33 .value("always_mmap_write", settings_pack::always_mmap_write)
34 .value("auto_mmap_write", settings_pack::auto_mmap_write)
35 ;
36
37 enum_<settings_pack::suggest_mode_t>("suggest_mode_t")
38 .value("no_piece_suggestions", settings_pack::no_piece_suggestions)
39 .value("suggest_read_cache", settings_pack::suggest_read_cache)
40 ;
41
42 enum_<settings_pack::io_buffer_mode_t>("io_buffer_mode_t")
43 .value("enable_os_cache", settings_pack::enable_os_cache)
44#if TORRENT_ABI_VERSION == 1
45 .value("disable_os_cache_for_aligned_files", settings_pack::disable_os_cache_for_aligned_files)
46#endif
47 .value("disable_os_cache", settings_pack::disable_os_cache)
48 .value("write_through", settings_pack::write_through)
49 ;
50
51 enum_<settings_pack::bandwidth_mixed_algo_t>("bandwidth_mixed_algo_t")
52 .value("prefer_tcp", settings_pack::prefer_tcp)
53 .value("peer_proportional", settings_pack::peer_proportional)
54 ;
55
56 enum_<settings_pack::enc_policy>("enc_policy")
57 .value("pe_forced", settings_pack::pe_forced)
58 .value("pe_enabled", settings_pack::pe_enabled)
59 .value("pe_disabled", settings_pack::pe_disabled)
60#if TORRENT_ABI_VERSION == 1
61 .value("forced", settings_pack::pe_forced)
62 .value("enabled", settings_pack::pe_enabled)
63 .value("disabled", settings_pack::pe_disabled)
64#endif
65 ;
66
67 enum_<settings_pack::enc_level>("enc_level")
68 .value("pe_rc4", settings_pack::pe_rc4)
69 .value("pe_plaintext", settings_pack::pe_plaintext)

Callers 1

BOOST_PYTHON_MODULEFunction · 0.85

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected