PeerDisconnectedAlert
data class PeerDisconnectedAlert(val torrentName: String?, val endpoint: String, val client: String = "Unknown", val socketType: String = "TCP", val operation: String = "bittorrent", val errorCategory: String = "system", val errorMessage: String, val reason: Int = 0) : PeerAlert
Generated when a peer is disconnected for any reason not covered by PeerErrorAlert. Ported from libtorrent::peer_disconnected_alert (alert_type 24).
libtorrent renders <peer-prefix> disconnecting (<socketType>) [<operation>] [<errorCategory>]: <errorMessage> (reason: <reason>).
Constructors
Properties
Link copied to clipboard
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 error category name (error.category().name()).
Link copied to clipboard
the error description.
Link copied to clipboard
the socket kind this peer was connected over.
Link copied to clipboard
the torrent's name, or null when the handle would be invalid (rendered as " - ", matching libtorrent).