Search in sources :

Example 1 with DHTPluginInterface

use of com.biglybt.plugin.dht.DHTPluginInterface in project BiglyBT by BiglySoftware.

the class AEPluginProxyHandler method getPluginDHTProxy.

public static DHTPluginInterface getPluginDHTProxy(String reason, String network, Map<String, Object> options) {
    waitForPlugins(plugin_init_max_wait);
    checkPluginInstallation(network, reason);
    PluginInterface pi = getPluginProxyForNetwork(network, false);
    if (pi == null) {
        return (null);
    }
    try {
        IPCInterface ipc = pi.getIPC();
        DHTPluginInterface reply = (DHTPluginInterface) ipc.invoke("getProxyDHT", new Object[] { reason, options });
        return (reply);
    } catch (Throwable e) {
    }
    return (null);
}
Also used : DHTPluginInterface(com.biglybt.plugin.dht.DHTPluginInterface) PluginInterface(com.biglybt.pif.PluginInterface) DHTPluginInterface(com.biglybt.plugin.dht.DHTPluginInterface) IPCInterface(com.biglybt.pif.ipc.IPCInterface)

Aggregations

PluginInterface (com.biglybt.pif.PluginInterface)1 IPCInterface (com.biglybt.pif.ipc.IPCInterface)1 DHTPluginInterface (com.biglybt.plugin.dht.DHTPluginInterface)1