All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.libtorrent4j.alerts.I2pAlert Maven / Gradle / Ivy

The newest version!
package org.libtorrent4j.alerts;

import org.libtorrent4j.ErrorCode;
import org.libtorrent4j.swig.i2p_alert;

/**
 * this alert is used to report errors in the i2p SAM connection.
 *
 * @author gubatron
 * @author aldenml
 */
public final class I2pAlert extends AbstractAlert {

    public I2pAlert(i2p_alert alert) {
        super(alert);
    }

    /**
     * the error that occurred in the i2p SAM connection.
     *
     *
     */
    public ErrorCode getError() {
        return new ErrorCode(alert.getError());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy