PeerBlockedAlert
data class PeerBlockedAlert(val torrentName: String?, val endpoint: String, val reason: PeerBlockReason) : PeerAlert
Posted when an incoming peer (or one about to be added) is blocked, e.g. by the IP/port filter or protocol restrictions. Ported from libtorrent::peer_blocked_alert (alert_type 54). In libtorrent the peer id is always null for this alert.
libtorrent renders <peer-prefix>: blocked peer [<reason>].
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 reason the peer was blocked.
Link copied to clipboard
the torrent's name, or null when the handle would be invalid (rendered as " - ", matching libtorrent).