Class UnwantedBlockAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<com.frostwire.jlibtorrent.swig.unwanted_block_alert>
com.frostwire.jlibtorrent.alerts.TorrentAlert<com.frostwire.jlibtorrent.swig.unwanted_block_alert>
com.frostwire.jlibtorrent.alerts.PeerAlert<com.frostwire.jlibtorrent.swig.unwanted_block_alert>
com.frostwire.jlibtorrent.alerts.UnwantedBlockAlert
All Implemented Interfaces:
Alert<com.frostwire.jlibtorrent.swig.unwanted_block_alert>

public final class UnwantedBlockAlert extends PeerAlert<com.frostwire.jlibtorrent.swig.unwanted_block_alert>
This alert is generated when a block is received that was not requested or whose request timed out.
  • Method Details

    • blockIndex

      public int blockIndex()
      Returns:
      block index
    • pieceIndex

      public int pieceIndex()
      Returns:
      piece index