Package-level declarations
Types
The boolean-typed session settings, the port of settings_pack::bool_types (settings_pack.hpp) together with the bool_settings default-value table from settings_pack.cpp.
The serialisation names and default values for the boolean settings, indexed by the 14-bit index (key and SettingType.INDEX_MASK). Mirrors the bool_settings array in settings_pack.cpp one-to-one, deprecated slots included.
Port of settings_pack::choking_algorithm_t (for Settings.CHOKING_ALGORITHM).
Port of settings_pack::enc_level (for Settings.ALLOWED_ENC_LEVEL). Note: values start at 1.
Port of settings_pack::enc_policy: the encryption policy for incoming / outgoing connections (Settings.OUT_ENC_POLICY / Settings.IN_ENC_POLICY).
The integer-typed session settings: a port of settings_pack::int_types (settings_pack.hpp) together with the int_settings default-value table from settings_pack.cpp.
The serialisation names and default values for the integer settings, indexed by the 14-bit index (key and SettingType.INDEX_MASK). Mirrors the int_settings array in settings_pack.cpp one-to-one, deprecated slots included.
Port of settings_pack::io_buffer_mode_t (for Settings.DISK_IO_WRITE_MODE / Settings.DISK_IO_READ_MODE).
Port of settings_pack::bandwidth_mixed_algo_t (for Settings.MIXED_MODE_ALGORITHM).
Port of settings_pack::mmap_write_mode_t (for Settings.DISK_WRITE_MODE).
Port of settings_pack::proxy_type_t (for Settings.PROXY_TYPE).
Port of settings_pack::seed_choking_algorithm_t (for Settings.SEED_CHOKING_ALGORITHM).
Umbrella re-export of the most commonly used setting keys, so call sites can write Settings.ENABLE_DHT instead of remembering which of the three category objects a key lives in. Every value here is identical to the corresponding constant in StringSetting / IntSetting / BoolSetting; this object adds no new settings.
A collection of session-setting overrides. The pure-Kotlin port of libtorrent's settings_pack (settings_pack.hpp / settings_pack.cpp).
The bit layout that distinguishes the three categories of session settings: port of the settings_pack::type_bases enum in settings_pack.hpp.
The string-typed session settings: port of settings_pack::string_types (settings_pack.hpp) together with the str_settings default-value table from settings_pack.cpp.
The serialisation names and default values for the string settings, indexed by the 14-bit index (i.e. key and SettingType.INDEX_MASK). Mirrors the str_settings array in settings_pack.cpp one-to-one.
Enumerated values for the integer settings that select an algorithm or mode: port of the small enums nested in settings_pack (settings_pack.hpp). These are plain Int constants because the settings store keeps everything as Int; the values match libtorrent's enumerators exactly (note the deliberate gaps, e.g. ChokingAlgorithm.RATE_BASED_CHOKER is 2, not 1).