AddTorrentParams

The add-a-torrent payload produced by LoadTorrent. This is the pure-Kotlin analogue of the fields libtorrent's load_torrent_* functions populate in an add_torrent_params (src/load_torrent.cpp, update_atp).

In libtorrent, load_torrent_buffer / load_torrent_file build a torrent_info and then drain the non-info-dictionary metadata (trackers, web seeds, DHT nodes) out of it into the surrounding add_torrent_params, so the session sees a single object with both the torrent and its session-level hints. KiteTorrent has no session type yet, so the same drained view is bundled here alongside the ti it came from.

The fields are the ones update_atp moves across:

Per-file merkle tree reconstruction and piece-layer verification (the second half of update_atp) are not reproduced here. See the note in LoadTorrent.

Properties

Link copied to clipboard

DHT bootstrap nodes (nodes): host/port pairs.

Link copied to clipboard

Convenience pair of (v1, v2) info-hashes, mirroring info_hashes_t.

Link copied to clipboard

v1 info-hash (SHA-1), or null for a pure-v2 torrent.

Link copied to clipboard

v2 info-hash (SHA-256), or null for a v1-only torrent.

Link copied to clipboard

The torrent's display name (name from the info dict).

Link copied to clipboard

The parsed torrent metadata.

Link copied to clipboard

Flat list of announce URLs (all tiers), in tier order.

Link copied to clipboard

Tier index for each entry of trackers, aligned 1:1.

Link copied to clipboard

BEP 19 web seeds (url-list).