StringSetting

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.

Each constant is a full 16-bit setting key (string_type_base | index), so it can be passed straight to SettingsPack.getString / SettingsPack.setString. The index positions are kept byte-identical to libtorrent, including the deprecated mmap_cache slot, so that the serialised names round-trip correctly.

Defaults that are a C++ nullptr (no default) are represented as null in StringSettingDefaults.DEFAULTS; libtorrent treats those as the empty string when read.

Properties

Link copied to clipboard
const val ANNOUNCE_IP: Int

IP address passed to trackers as &ip=. Empty/unset omits the parameter.

Link copied to clipboard

Deprecated mmap_cache slot (kept to preserve indices).

Link copied to clipboard

Comma-separated host:port DHT bootstrap nodes.

Link copied to clipboard

Client name/version sent to peers in the BT handshake; falls back to USER_AGENT if empty.

Link copied to clipboard
const val I2P_HOSTNAME: Int

i2p SAM bridge hostname (see Settings.I2P_PORT).

Link copied to clipboard

Comma-separated (IP/device, port) listen endpoints for incoming uTP/TCP peers.

Link copied to clipboard
const val NATPMP_GATEWAY: Int

Overrides the NAT-PMP gateway address.

Link copied to clipboard

Comma-separated IPs/interface names to bind outgoing TCP peer connections to.

Link copied to clipboard

Peer-id fingerprint prefix; if >= 20 bytes it is truncated and used as the whole peer-id.

Link copied to clipboard
const val PROXY_HOSTNAME: Int

Proxy hostname (see Settings.PROXY_TYPE).

Link copied to clipboard
const val PROXY_PASSWORD: Int

Proxy password.

Link copied to clipboard
const val PROXY_USERNAME: Int

Proxy username.

Link copied to clipboard
const val USER_AGENT: Int

Client identification sent to trackers and peers, e.g. "libtorrent/2.0.12.0".