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

com.frostwire.jlibtorrent.alerts.DhtReplyAlert Maven / Gradle / Ivy

There is a newer version: 1.2.0.18
Show newest version
package com.frostwire.jlibtorrent.alerts;

import com.frostwire.jlibtorrent.swig.dht_reply_alert;

/**
 * This alert is generated each time the DHT receives peers from a node. ``num_peers``
 * is the number of peers we received in this packet. Typically these packets are
 * received from multiple DHT nodes, and so the alerts are typically generated
 * a few at a time.
 *
 * @author gubatron
 * @author aldenml
 */
public final class DhtReplyAlert extends TrackerAlert {

    DhtReplyAlert(dht_reply_alert alert) {
        super(alert);
    }

    /**
     * @return
     */
    public int numPeers() {
        return alert.getNum_peers();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy