IntSetting

object IntSetting

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.

Each constant is a full 16-bit setting key (int_type_base | index). The index positions are kept byte-identical to libtorrent, including every deprecated slot (old disk-cache sizes, BitTyrant rates, half-open limit, …). Deprecated slots get no named constant but still occupy their index in IntSettingDefaults.

Two platform-conditional defaults are resolved to their non-Windows values (the portable default for KiteTorrent's multiplatform targets):

Properties

Link copied to clipboard
const val ACTIVE_CHECKING: Int

Limit on simultaneously checking torrents.

Link copied to clipboard

Max torrents announced to the DHT.

Link copied to clipboard

Upper limit on active downloading torrents (auto-managed); -1 = unlimited.

Link copied to clipboard
const val ACTIVE_LIMIT: Int

Hard limit on active (auto-managed) torrents.

Link copied to clipboard

Max torrents announced over local service discovery.

Link copied to clipboard
const val ACTIVE_SEEDS: Int

Upper limit on active seeding torrents (auto-managed); -1 = unlimited.

Link copied to clipboard

Max torrents announced to their trackers.

Link copied to clipboard
const val AIO_THREADS: Int

Number of aio (disk) I/O threads.

Link copied to clipboard
const val ALERT_MASK: Int

Bitmask of alert_category_t flags selecting which alerts to receive.

Link copied to clipboard

Max alerts queued internally before new alerts are dropped.

Link copied to clipboard

Allowed encryption level; see EncLevel.

Link copied to clipboard

Number of allowed-fast pieces offered to fast-extension peers.

Link copied to clipboard
const val ANNOUNCE_PORT: Int

port parameter sent to remote trackers (0 = use the listening port).

Link copied to clipboard

Seconds between auto-manage queue updates/rotations.

Link copied to clipboard

Seconds a freshly-started torrent stays considered active regardless of rate.

Link copied to clipboard

Seconds between scrapes of queued torrents.

Link copied to clipboard

Minimum seconds between any automatic scrape.

Link copied to clipboard

Outstanding 16 KiB blocks while checking torrents.

Link copied to clipboard

Downloading-unchoke algorithm; see ChokingAlgorithm.

Link copied to clipboard

Seconds between closing the longest-open file (0 = disabled; portable default).

Link copied to clipboard

Every n:th connection attempt is given to a finished torrent.

Link copied to clipboard

Connection attempts per second; 0 means no outgoing connections.

Link copied to clipboard

Global limit on open connections (min 2 per torrent regardless).

Link copied to clipboard

Incoming connections accepted above the limit to potentially replace existing ones.

Link copied to clipboard

Seconds between DHT announces.

Link copied to clipboard

Max packets/s a DHT node may send without being banned.

Link copied to clipboard

Seconds a DHT node is banned after exceeding the rate limit.

Link copied to clipboard

Seconds an (im)mutable DHT item lives (0 = never expires).

Link copied to clipboard

Max items the DHT will store.

Link copied to clipboard

Max failed contact attempts before a DHT node is removed.

Link copied to clipboard

Max elements in the sampled info-hashes subset.

Link copied to clipboard
const val DHT_MAX_PEERS: Int

Max peers stored per torrent in the DHT.

Link copied to clipboard

Max peers returned in a DHT get_peers reply.

Link copied to clipboard

Max torrents returned in a DHT torrent-search reply.

Link copied to clipboard

Upper limit on torrents tracked from the DHT.

Link copied to clipboard

Info-hashes sample recomputation interval, in seconds (0..21600).

Link copied to clipboard

DHT search branching factor (alpha in the Kademlia paper).

Link copied to clipboard

Average bytes/s the DHT may send.

Link copied to clipboard

Read-mode file open behaviour; see IoBufferMode.

Link copied to clipboard

How files are opened in read-only vs read/write mode; see IoBufferMode.

Link copied to clipboard
const val DISK_WRITE_MODE: Int

mmap-vs-pwrite disk-write mode (mmap_disk_io only); see MmapWriteMode.

Link copied to clipboard

Session-global download rate limit in bytes/s (0 = unlimited).

Link copied to clipboard
const val FILE_POOL_SIZE: Int

Upper limit on simultaneously open files this session keeps.

Link copied to clipboard

Seconds to wait for a handshake response.

Link copied to clipboard
const val HASHING_THREADS: Int

Disk I/O threads dedicated to piece-hash verification (full checks).

Link copied to clipboard

i2p inbound tunnel hop count 0..7.

Link copied to clipboard

Variance for i2p inbound tunnel length -7..7.

Link copied to clipboard

i2p inbound tunnel quantity 1..16.

Link copied to clipboard

i2p outbound tunnel hop count 0..7.

Link copied to clipboard

Variance for i2p outbound tunnel length -7..7.

Link copied to clipboard

i2p outbound tunnel quantity 1..16.

Link copied to clipboard
const val I2P_PORT: Int

i2p SAM bridge port.

Link copied to clipboard
const val IN_ENC_POLICY: Int

Incoming-connection encryption policy; see EncPolicy.

Link copied to clipboard

Download-rate threshold (bytes/s) under which a torrent counts as inactive.

Link copied to clipboard

Upload-rate threshold (bytes/s) under which a torrent counts as inactive.

Link copied to clipboard

Seconds a mutually-uninterested peer stays before disconnect.

Link copied to clipboard

Pieces picked at random before switching to rarest-first.

Link copied to clipboard

Backlog passed to listen() for the listen socket.

Link copied to clipboard

Seconds between local-network announces for a torrent.

Link copied to clipboard

Max outstanding block requests a peer may queue in us.

Link copied to clipboard

Max concurrent HTTP tracker announces.

Link copied to clipboard
const val MAX_FAILCOUNT: Int

Max connection attempts to a peer before giving up.

Link copied to clipboard

Max bytes for an HTTP response when announcing or fetching a .torrent.

Link copied to clipboard

Max bytes accepted by the metadata (magnet) extension.

Link copied to clipboard

Max outstanding requests we send to a peer (overrides REQUEST_QUEUE_TIME).

Link copied to clipboard

Max peer-list size for paused torrents.

Link copied to clipboard

Max bytes a single peer connection's receive buffer may grow to.

Link copied to clipboard

Max known peers in the peer list (0 = unlimited).

Link copied to clipboard
const val MAX_PEX_PEERS: Int

Max peers accepted from a single peer's PEX message.

Link copied to clipboard
const val MAX_PIECE_COUNT: Int

Max pieces in metadata received via magnet links.

Link copied to clipboard

Max bytes queued for the disk-write thread before peers stop reading sockets.

Link copied to clipboard
const val MAX_REJECTS: Int

Consecutive rejected requests from a choked peer before it's deemed abusive.

Link copied to clipboard

Times to retry a failed port bind (incrementing the port).

Link copied to clipboard

Max remembered suggested piece indices from a peer.

Link copied to clipboard

Max web seeds connected per torrent.

Link copied to clipboard

Max bencoded tokens parsed when receiving metadata from peers.

Link copied to clipboard

Minimum allowed tracker announce interval (sanity clamp), in seconds.

Link copied to clipboard

Seconds to wait before reconnecting (multiplied by failcount).

Link copied to clipboard

TCP-vs-uTP bandwidth balancing mode; see MixedModeAlgorithm.

Link copied to clipboard

Files smaller than this many 16 KiB blocks are not memory-mapped.

Link copied to clipboard

NAT-PMP / PCP port-mapping lease duration in seconds.

Link copied to clipboard

Number of optimistic-unchoke slots (0 = automatic, 20% of upload slots).

Link copied to clipboard

Size of the outgoing-port range starting at OUTGOING_PORT.

Link copied to clipboard
const val NUM_WANT: Int

Peers requested from each tracker (&num_want=).

Link copied to clipboard

Seconds from a disk write error until upload-only mode is retried.

Link copied to clipboard

Seconds between optimistic unchokes.

Link copied to clipboard
const val OUT_ENC_POLICY: Int

Outgoing-connection encryption policy; see EncPolicy.

Link copied to clipboard
const val OUTGOING_PORT: Int

First port for binding outgoing connections (0 = OS-chosen).

Link copied to clipboard

Seconds after initiating a connection before it times out.

Link copied to clipboard
const val PEER_DSCP: Int

DSCP field of the IP header for packets to peers (0x01 = Lower Effort).

Link copied to clipboard
const val PEER_TIMEOUT: Int

Seconds of peer-connection inactivity before timing it out (protocol: 120).

Link copied to clipboard
const val PEER_TURNOVER: Int

Percentage of peers to disconnect on each turnover interval.

Link copied to clipboard

Connection-fill percentage above which turnover disconnects kick in.

Link copied to clipboard

Seconds between optimistic turnover disconnects.

Link copied to clipboard
const val PIECE_TIMEOUT: Int

Seconds until a piece request times out with no response.

Link copied to clipboard

Milliseconds in advance to announce pieces before completion (0 = off).

Link copied to clipboard
const val PROXY_PORT: Int

Proxy server port.

Link copied to clipboard
const val PROXY_TYPE: Int

Proxy type; see ProxyType.

Link copied to clipboard

Start threshold for the rate-based choker.

Link copied to clipboard

Socket receive-buffer size (SO_RCVBUF); 0 = OS default.

Link copied to clipboard

Target request-queue length expressed in seconds of transfer.

Link copied to clipboard
const val REQUEST_TIMEOUT: Int

Seconds one 16 KiB block is expected within before re-requesting elsewhere.

Link copied to clipboard

Seconds before a host-name resolver cache entry is considered stale.

Link copied to clipboard

Seeding-unchoke algorithm; see SeedChokingAlgorithm.

Link copied to clipboard
const val SEED_TIME_LIMIT: Int

Seconds of active seeding before the seed-time criterion is met.

Link copied to clipboard

Seed-time-ratio (seed/leech seconds) percentage at which a seed is considered done.

Link copied to clipboard

Pieces to send a peer while seeding before rotating the unchoke set.

Link copied to clipboard

Minimum send-buffer target size in bytes (initial window).

Link copied to clipboard

Upper bound on the send-buffer watermark in bytes.

Link copied to clipboard

Percentage factor applied to upload rate to compute the send-buffer watermark.

Link copied to clipboard

Not-sent low watermark for socket send buffers (TCP_NOTSENT_LOWAT).

Link copied to clipboard

Socket send-buffer size (SO_SNDBUF); 0 = OS default.

Link copied to clipboard

Target share ratio for share-mode torrents (e.g. 3 = upload 3x download).

Link copied to clipboard

Share-ratio (up/down) percentage at which a seed is considered done.

Link copied to clipboard

Seconds to wait for a stopped message; 0 suppresses stop announces.

Link copied to clipboard
const val SUGGEST_MODE: Int

Suggest-message mode; see SuggestMode.

Link copied to clipboard
const val TICK_INTERVAL: Int

Milliseconds between internal ticks (bandwidth-quota distribution).

Link copied to clipboard

Peers connected immediately on the first tracker response (<= 255).

Link copied to clipboard
const val TRACKER_BACKOFF: Int

Aggressiveness of tracker retry back-off (the x in the back-off formula).

Link copied to clipboard

Seconds before a tracker request is considered timed out (from sending).

Link copied to clipboard

Max bytes (uncompressed) accepted in a tracker response.

Link copied to clipboard

Seconds with no data from a tracker before it times out.

Link copied to clipboard

Seconds UDP-tracker connection tokens are kept (protocol: 60).

Link copied to clipboard

Seconds between choke/unchoke re-evaluation (protocol: 30).

Link copied to clipboard

Max unchoked peers in the session (-1 = unlimited).

Link copied to clipboard

Session-global upload rate limit in bytes/s (0 = unlimited).

Link copied to clipboard

UPnP port-mapping lease duration in seconds (0 = permanent).

Link copied to clipboard

Largest sequential web-seed request in bytes.

Link copied to clipboard

HTTP request pipelining depth for url/http seeds.

Link copied to clipboard
const val URLSEED_TIMEOUT: Int

Like PEER_TIMEOUT but for url-seeds (usually lower).

Link copied to clipboard

Default seconds before retrying an http-seed lacking a retry-after header.

Link copied to clipboard

Milliseconds timeout for the initial uTP SYN (doubles per timeout).

Link copied to clipboard

Milliseconds to hold the uTP cwnd reduction after packet loss.

Link copied to clipboard
const val UTP_FIN_RESENDS: Int

FIN packets resent before giving up closing a uTP socket.

Link copied to clipboard
const val UTP_GAIN_FACTOR: Int

Max bytes the uTP congestion window can grow per RTT.

Link copied to clipboard

Percentage multiplier for cwnd on uTP packet loss (never > 100).

Link copied to clipboard
const val UTP_MIN_TIMEOUT: Int

Shortest allowed uTP socket timeout in milliseconds.

Link copied to clipboard
const val UTP_NUM_RESENDS: Int

Times a uTP packet is resent before closing the connection.

Link copied to clipboard
const val UTP_SYN_RESENDS: Int

SYN packets sent (and timed out) before giving up a uTP connect.

Link copied to clipboard

Target uTP delay in milliseconds.

Link copied to clipboard

Seconds before retrying a web-seed name lookup.

Link copied to clipboard

If a whole piece downloads within this many seconds, prefer whole-piece requests.