SessionStatsAlert

data class SessionStatsAlert(val counters: LongArray) : Alert

Posted as a response to post_session_stats(). Carries a snapshot of all the session-wide counters. Ported from libtorrent::session_stats_alert (alert_type 70). Non-discardable.

libtorrent renders session stats (<n> values): <v0>, <v1>, ... (the values joined by ", ").

Constructors

Link copied to clipboard
constructor(counters: LongArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val category: Int

The bitmask of AlertCategory flags this alert belongs to. Mirrors alert::category(), which returns the concrete alert's static_category.

Link copied to clipboard

the raw 64-bit counter values for this snapshot.

Link copied to clipboard
open override val type: Int

An integer unique to this alert type, matching the C++ alert_type static constant. It can be compared against a concrete alert's ALERT_TYPE to determine the runtime type. Mirrors alert::type().

Link copied to clipboard
open override val what: String

A short string literal naming the alert type (e.g. "torrent_finished"). It carries no bundled information. Mirrors alert::what(), which in libtorrent returns alert_name(alert_type).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun message(): String

A string describing the alert and the information bundled with it. Intended for debugging/development, not localization. Mirrors alert::message().