Package com.biglybt.pif.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 theMainlineDHTProvider
interface and register with this class so that the client can indicate it provides DHT support.- Since:
- 3.0.4.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 the client to disable support for mainline DHT.
-
getProvider
MainlineDHTProvider getProvider()
Returns the current DHT provider, or null if there isn't one.
-
-