struct

QBittorrent::Model::Peer

Inherits JSON::Serializable::Unmapped < JSON::Serializable < Struct < Value < Object

A single connected peer, as a value of the peers object in sync/torrentPeers (see ext/api-map.md §3).

Like the rest of the sync payload this is delta-based, so every field is nilable (a partial update carries only what changed) and JSON::Serializable::Unmapped preserves unmodelled keys. Byte counters and speeds are Int64; progress and relevance are Float64.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

client

Client software as reported over the wire.

Source
connection

Connection type (e.g. "BT", "μTP", "web").

Source
country

Country name (present when peer-country resolution is enabled).

Source
country_code

Two-letter country code.

Source
dl_speed

Download speed from this peer, bytes/s.

Source
downloaded

Total bytes downloaded from this peer.

Source
files

Files the peer is interested in (relative paths).

Source
flags

Peer flags (short codes, e.g. "D U").

Source
flags_desc

Human-readable description of the peer flags.

Source
i2p

Whether the peer was reached over I2P.

Source
ip

Peer IP address.

Source
peer_id_client

Client software inferred from the peer id.

Source
port

Peer port.

Source
progress

Download progress of the peer, 01.

Source
relevance

Relevance of the peer to this torrent, 01.

Source
shadowbanned

Whether the peer is shadow-banned (qB 5.x).

Source
up_speed

Upload speed to this peer, bytes/s.

Source
uploaded

Total bytes uploaded to this peer.

Source