Interface DHTPluginInterface
- All Superinterfaces:
DHTPluginBasicInterface
- All Known Implementing Classes:
DHTPlugin
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final shortstatic final bytestatic final bytestatic final bytestatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoiddecodeStats(DHTPluginValue value) default Stringdefault InetSocketAddress[]default DHTPluginContact[]getValues(byte[] key) importContact(InetSocketAddress address) importContact(InetSocketAddress address, byte version) importContact(InetSocketAddress address, byte version, boolean is_cvs) Deprecated.default DHTPluginContactimportContact(InetSocketAddress address, byte version, int preferred_net) importContact(Map<String, Object> map) booleanvoidvoidregisterHandler(byte[] handler_key, DHTPluginTransferHandler handler, Map<String, Object> options) default voidremove(byte[] key, String description, short flags, DHTPluginOperationListener listener) voidremove(byte[] key, String description, DHTPluginOperationListener listener) voidremove(DHTPluginContact[] targets, byte[] key, String description, DHTPluginOperationListener listener) voidvoidunregisterHandler(byte[] handler_key, DHTPluginTransferHandler handler) Methods inherited from interface 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:
getAENetworkin 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)