BlockFinishedAlert
data class BlockFinishedAlert(val torrentName: String?, val endpoint: String, val client: String = "Unknown", val pieceIndex: Int, val blockIndex: Int) : PeerAlert
Generated when a block request receives a response (the block finished downloading from this peer). Ported from libtorrent::block_finished_alert (alert_type 30). Extends PeerAlert.
libtorrent renders <peer-prefix> block finished downloading (piece: <piece> block: <block>).
Constructors
Properties
Link copied to clipboard
the index of the block within the piece.
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 index of the piece the block belongs to.
Link copied to clipboard
the torrent's name, or null when the handle would be invalid (rendered as " - ", matching libtorrent).