org.libtorrent4j.alerts.RequestDroppedAlert Maven / Gradle / Ivy
package org.libtorrent4j.alerts;
import org.libtorrent4j.swig.request_dropped_alert;
/**
* This alert is generated when a peer rejects or ignores a piece request.
*
* @author gubatron
* @author aldenml
*/
public final class RequestDroppedAlert extends PeerAlert {
public RequestDroppedAlert(request_dropped_alert alert) {
super(alert);
}
public int getBlockIndex() {
return alert.getBlock_index();
}
public int getPieceIndex() {
return alert.getPiece_index();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy