Skip to main content

LtSettingsPack

A settings pack which you can use to update session settings.

There are hundreds of settings to tinker with, and the LtSettingsPack has getters and setters for all (except a few like user agent, peer fingerprint, and some more).

See the libtorrent documentation.

Example

Set the download rate limit on a settings pack to 1024 bytes per second.

local settings = LtSettingsPack()
settings.download_rate_limit = 1024

some_session:apply_settings(settings)

Constructors

LtSettingsPack()

v1.0

Returns an empty settings pack.

Factories

default_settings()

v1.0

high_performance_seed()

v1.0

Example

local settings = LtSettingsPack.high_performance_seed()

min_memory_usage()

v1.0