Examples of MainlineDHTProvider


Examples of org.gudy.azureus2.plugins.dht.mainline.MainlineDHTProvider

    }
  }
 
  private void sendMainlineDHTPort() {
    if (!this.ml_dht_enabled) {return;}
    MainlineDHTProvider provider = getDHTProvider();
    if (provider == null) {return;}
    Message message = new BTDHTPort(provider.getDHTPort());
    connection.getOutgoingMessageQueue().addMessage(message, false);
  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.dht.mainline.MainlineDHTProvider

  protected void decodeMainlineDHTPort(BTDHTPort port) {
    int i_port = port.getDHTPort();
    port.destroy();
   
    if (!this.ml_dht_enabled) {return;}
    MainlineDHTProvider provider = getDHTProvider();
    if (provider == null) {return;}
   
    try {provider.notifyOfIncomingPort(getIp(), i_port);}
    catch (Throwable t) {Debug.printStackTrace(t);
  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.dht.mainline.MainlineDHTProvider

  public MainlineDHTManagerImpl(AzureusCore core) {
    this.core = core;
  }

  public void setProvider(MainlineDHTProvider provider) {
    MainlineDHTProvider old_provider = core.getGlobalManager().getMainlineDHTProvider();
    core.getGlobalManager().setMainlineDHTProvider(provider);
   
    // Registering new provider, so enable global DHT support.
    if (old_provider == null && provider != null) {
      BTHandshake.setMainlineDHTEnabled(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.