org.gudy.azureus2.plugins.dht.mainline
Interface MainlineDHTManager

All Known Implementing Classes:
MainlineDHTManagerImpl

public interface MainlineDHTManager

Used for registering and unregistering plugins which connect to the mainline DHT network. Plugins must implement the MainlineDHTProvider interface and register with this class so that Azureus can indicate it provides DHT support.

Since:
3.0.4.3

Method Summary
 MainlineDHTProvider getProvider()
          Returns the current DHT provider, or null if there isn't one.
 void setProvider(MainlineDHTProvider provider)
          Registers an object to be used for mainline DHT support.
 

Method Detail

setProvider

void setProvider(MainlineDHTProvider provider)
Registers an object to be used for mainline DHT support. There is only one slot available, so if multiple plugins attempt to register themselves, only the last one will be used. If you pass null as an argument, it will cause Azureus to disable support for mainline DHT.


getProvider

MainlineDHTProvider getProvider()
Returns the current DHT provider, or null if there isn't one.