Package com.biglybt.plugin.dht
Interface DHTPluginInterface
- All Superinterfaces:
DHTPluginBasicInterface
- All Known Implementing Classes:
DHTPlugin
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
static final short
static final byte
static final byte
static final byte
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decodeStats
(DHTPluginValue value) default String
default InetSocketAddress[]
default DHTPluginContact[]
getValues
(byte[] key) importContact
(InetSocketAddress address) importContact
(InetSocketAddress address, byte version) importContact
(InetSocketAddress address, byte version, boolean is_cvs) Deprecated.default DHTPluginContact
importContact
(InetSocketAddress address, byte version, int preferred_net) importContact
(Map<String, Object> map) boolean
void
void
registerHandler
(byte[] handler_key, DHTPluginTransferHandler handler, Map<String, Object> options) default void
remove
(byte[] key, String description, short flags, DHTPluginOperationListener listener) void
remove
(byte[] key, String description, DHTPluginOperationListener listener) void
remove
(DHTPluginContact[] targets, byte[] key, String description, DHTPluginOperationListener listener) void
void
unregisterHandler
(byte[] handler_key, DHTPluginTransferHandler handler) Methods inherited from interface com.biglybt.plugin.dht.DHTPluginBasicInterface
get, getDHTInterfaces, getValues, isEnabled, isInitialising, isSleeping, put, put
-
Field Details
-
FLAG_SINGLE_VALUE
static final byte FLAG_SINGLE_VALUE- See Also:
-
FLAG_DOWNLOADING
static final byte FLAG_DOWNLOADING- See Also:
-
FLAG_SEEDING
static final byte FLAG_SEEDING- See Also:
-
FLAG_MULTI_VALUE
static final byte FLAG_MULTI_VALUE- See Also:
-
FLAG_STATS
static final byte FLAG_STATS- See Also:
-
FLAG_ANON
static final byte FLAG_ANON- See Also:
-
FLAG_PRECIOUS
static final byte FLAG_PRECIOUS- See Also:
-
FLAG_BRIDGED
static final byte FLAG_BRIDGED- See Also:
-
FLAG_PUT_AND_FORGET
static final short FLAG_PUT_AND_FORGET- See Also:
-
MAX_VALUE_SIZE
static final int MAX_VALUE_SIZE- See Also:
-
-
Method Details
-
getNetwork
String getNetwork() -
getAENetwork
- Specified by:
getAENetwork
in interfaceDHTPluginBasicInterface
-
isExtendedUseAllowed
boolean isExtendedUseAllowed() -
getLocalAddress
DHTPluginContact getLocalAddress() -
getLocalAddresses
-
getConnectionOrientedEndpoint
InetSocketAddress getConnectionOrientedEndpoint() -
getConnectionOrientedEndpoints
-
decodeStats
-
registerHandler
void registerHandler(byte[] handler_key, DHTPluginTransferHandler handler, Map<String, Object> options) -
unregisterHandler
-
importContact
-
importContact
-
importContact
Deprecated. -
importContact
-
importContact
-
getValues
-
remove
-
remove
default void remove(byte[] key, String description, short flags, DHTPluginOperationListener listener) -
remove
void remove(DHTPluginContact[] targets, byte[] key, String description, DHTPluginOperationListener listener) -
addListener
-
removeListener
-
log
-
importContact(InetSocketAddress, byte, int)