PeerConnectAlert
data class PeerConnectAlert(val torrentName: String?, val endpoint: String, val client: String = "Unknown", val direction: PeerConnectDirection, val socketType: String = "TCP") : PeerAlert
Posted when an incoming connection passes the handshake and is associated with a torrent, or an outgoing connection attempt succeeds. Ported from libtorrent::peer_connect_alert (alert_type 23).
libtorrent renders <peer-prefix> <incoming|outgoing> connection to peer (<socketType>).
Constructors
Link copied to clipboard
constructor(torrentName: String?, endpoint: String, client: String = "Unknown", direction: PeerConnectDirection, socketType: String = "TCP")
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
whether the connection was incoming or outgoing.
Link copied to clipboard
the socket kind the connection uses.
Link copied to clipboard
the torrent's name, or null when the handle would be invalid (rendered as " - ", matching libtorrent).