com.aelitis.azureus.core.dht.transport.udp
Interface DHTTransportUDP

All Superinterfaces:
DHTTransport
All Known Implementing Classes:
DHTTransportUDPImpl

public interface DHTTransportUDP
extends DHTTransport

Author:
parg

Nested Class Summary
static class DHTTransportUDP.Helper
           
 
Field Summary
static byte PROTOCOL_VERSION_2304
           
static byte PROTOCOL_VERSION_2306
           
static byte PROTOCOL_VERSION_2400
           
static byte PROTOCOL_VERSION_2402
           
static byte PROTOCOL_VERSION_2500
           
static byte PROTOCOL_VERSION_2502
           
static byte PROTOCOL_VERSION_3111
           
static byte PROTOCOL_VERSION_4204
           
static byte PROTOCOL_VERSION_4208
           
static byte PROTOCOL_VERSION_4310
           
static byte PROTOCOL_VERSION_4407
           
static byte PROTOCOL_VERSION_4511
           
static byte PROTOCOL_VERSION_4600
           
static byte PROTOCOL_VERSION_4720
           
static byte PROTOCOL_VERSION_4800
           
static byte PROTOCOL_VERSION_5400
           
static byte PROTOCOL_VERSION_5500
           
static byte PROTOCOL_VERSION_ALT_CONTACTS
           
static byte PROTOCOL_VERSION_ANON_VALUES
           
static byte PROTOCOL_VERSION_ANTI_SPOOF
           
static byte PROTOCOL_VERSION_ANTI_SPOOF2
           
static byte PROTOCOL_VERSION_BLOCK_KEYS
           
static byte PROTOCOL_VERSION_CVS
           
static byte PROTOCOL_VERSION_CVS_FIX_OVERLOAD_V1
           
static byte PROTOCOL_VERSION_CVS_FIX_OVERLOAD_V2
           
static byte PROTOCOL_VERSION_CVS_FIX_OVERLOAD_V3
           
static byte PROTOCOL_VERSION_DIV_AND_CONT
           
static byte PROTOCOL_VERSION_ENCRYPT_TT
           
static byte PROTOCOL_VERSION_FIX_ORIGINATOR
           
static byte PROTOCOL_VERSION_GENERIC_NETPOS
           
static byte PROTOCOL_VERSION_LONGER_LIFE
           
static byte PROTOCOL_VERSION_MAIN
           
static byte PROTOCOL_VERSION_MIN
           
static byte PROTOCOL_VERSION_MIN_CVS
           
static byte PROTOCOL_VERSION_MORE_NODE_STATUS
           
static byte PROTOCOL_VERSION_MORE_STATS
           
static byte PROTOCOL_VERSION_NETWORKS
           
static byte PROTOCOL_VERSION_PACKET_FLAGS
           
static byte PROTOCOL_VERSION_PACKET_FLAGS2
           
static byte PROTOCOL_VERSION_PROC_TIME
           
static byte PROTOCOL_VERSION_REMOVE_DIST_ADD_VER
           
static byte PROTOCOL_VERSION_REPLICATION_CONTROL
           
static byte PROTOCOL_VERSION_REPLICATION_CONTROL2
           
static byte PROTOCOL_VERSION_REPLICATION_CONTROL3
           
static byte PROTOCOL_VERSION_RESTRICT_ID_PORTS
           
static byte PROTOCOL_VERSION_RESTRICT_ID_PORTS2
           
static byte PROTOCOL_VERSION_RESTRICT_ID_PORTS2X
           
static byte PROTOCOL_VERSION_RESTRICT_ID_PORTS2Y
           
static byte PROTOCOL_VERSION_RESTRICT_ID_PORTS2Z
           
static byte PROTOCOL_VERSION_RESTRICT_ID3
           
static byte PROTOCOL_VERSION_SIZE_ESTIMATE
           
static byte PROTOCOL_VERSION_VENDOR_ID
           
static byte PROTOCOL_VERSION_VIVALDI
           
static byte PROTOCOL_VERSION_VIVALDI_FINDVALUE
           
static byte PROTOCOL_VERSION_VIVALDI_OPTIONAL
           
static byte PROTOCOL_VERSION_XFER_STATUS
           
static byte VENDOR_ID_AELITIS
           
static byte VENDOR_ID_ME
           
static byte VENDOR_ID_NONE
           
static byte VENDOR_ID_ShareNET
           
 
Fields inherited from interface com.aelitis.azureus.core.dht.transport.DHTTransport
GF_DHT_SLEEPING, GF_NONE
 
Method Summary
 DHTTransportAlternativeNetwork getAlternativeNetwork(int network_type)
           
 DHTUDPPacketHandler getPacketHandler()
           
 DHTUDPRequestHandler getRequestHandler()
           
 DHTTransportUDPContact importContact(InetSocketAddress address, byte protocol_version, boolean is_bootstrap)
           
 DHTTransportUDPContact importContact(Map<String,Object> map)
           
 void registerAlternativeNetwork(DHTTransportAlternativeNetwork network)
           
 void unregisterAlternativeNetwork(DHTTransportAlternativeNetwork network)
           
 
Methods inherited from interface com.aelitis.azureus.core.dht.transport.DHTTransport
addListener, getGenericFlags, getLocalContact, getMinimumProtocolVersion, getNetwork, getPort, getProtocolVersion, getReachableContacts, getRecentContacts, getStats, getTimeout, importContact, isIPV6, isReachable, readTransfer, registerTransferHandler, registerTransferHandler, removeListener, setGenericFlag, setPort, setRequestHandler, setSuspended, setTimeout, supportsStorage, unregisterTransferHandler, writeReadTransfer, writeTransfer
 

Field Detail

PROTOCOL_VERSION_2304

static final byte PROTOCOL_VERSION_2304
See Also:
Constant Field Values

PROTOCOL_VERSION_2306

static final byte PROTOCOL_VERSION_2306
See Also:
Constant Field Values

PROTOCOL_VERSION_2400

static final byte PROTOCOL_VERSION_2400
See Also:
Constant Field Values

PROTOCOL_VERSION_2402

static final byte PROTOCOL_VERSION_2402
See Also:
Constant Field Values

PROTOCOL_VERSION_2500

static final byte PROTOCOL_VERSION_2500
See Also:
Constant Field Values

PROTOCOL_VERSION_2502

static final byte PROTOCOL_VERSION_2502
See Also:
Constant Field Values

PROTOCOL_VERSION_3111

static final byte PROTOCOL_VERSION_3111
See Also:
Constant Field Values

PROTOCOL_VERSION_4204

static final byte PROTOCOL_VERSION_4204
See Also:
Constant Field Values

PROTOCOL_VERSION_4208

static final byte PROTOCOL_VERSION_4208
See Also:
Constant Field Values

PROTOCOL_VERSION_4310

static final byte PROTOCOL_VERSION_4310
See Also:
Constant Field Values

PROTOCOL_VERSION_4407

static final byte PROTOCOL_VERSION_4407
See Also:
Constant Field Values

PROTOCOL_VERSION_4511

static final byte PROTOCOL_VERSION_4511
See Also:
Constant Field Values

PROTOCOL_VERSION_4600

static final byte PROTOCOL_VERSION_4600
See Also:
Constant Field Values

PROTOCOL_VERSION_4720

static final byte PROTOCOL_VERSION_4720
See Also:
Constant Field Values

PROTOCOL_VERSION_4800

static final byte PROTOCOL_VERSION_4800
See Also:
Constant Field Values

PROTOCOL_VERSION_5400

static final byte PROTOCOL_VERSION_5400
See Also:
Constant Field Values

PROTOCOL_VERSION_5500

static final byte PROTOCOL_VERSION_5500
See Also:
Constant Field Values

PROTOCOL_VERSION_DIV_AND_CONT

static final byte PROTOCOL_VERSION_DIV_AND_CONT
See Also:
Constant Field Values

PROTOCOL_VERSION_ANTI_SPOOF

static final byte PROTOCOL_VERSION_ANTI_SPOOF
See Also:
Constant Field Values

PROTOCOL_VERSION_ENCRYPT_TT

static final byte PROTOCOL_VERSION_ENCRYPT_TT
See Also:
Constant Field Values

PROTOCOL_VERSION_ANTI_SPOOF2

static final byte PROTOCOL_VERSION_ANTI_SPOOF2
See Also:
Constant Field Values

PROTOCOL_VERSION_FIX_ORIGINATOR

static final byte PROTOCOL_VERSION_FIX_ORIGINATOR
See Also:
Constant Field Values

PROTOCOL_VERSION_VIVALDI

static final byte PROTOCOL_VERSION_VIVALDI
See Also:
Constant Field Values

PROTOCOL_VERSION_REMOVE_DIST_ADD_VER

static final byte PROTOCOL_VERSION_REMOVE_DIST_ADD_VER
See Also:
Constant Field Values

PROTOCOL_VERSION_XFER_STATUS

static final byte PROTOCOL_VERSION_XFER_STATUS
See Also:
Constant Field Values

PROTOCOL_VERSION_SIZE_ESTIMATE

static final byte PROTOCOL_VERSION_SIZE_ESTIMATE
See Also:
Constant Field Values

PROTOCOL_VERSION_VENDOR_ID

static final byte PROTOCOL_VERSION_VENDOR_ID
See Also:
Constant Field Values

PROTOCOL_VERSION_BLOCK_KEYS

static final byte PROTOCOL_VERSION_BLOCK_KEYS
See Also:
Constant Field Values

PROTOCOL_VERSION_GENERIC_NETPOS

static final byte PROTOCOL_VERSION_GENERIC_NETPOS
See Also:
Constant Field Values

PROTOCOL_VERSION_VIVALDI_FINDVALUE

static final byte PROTOCOL_VERSION_VIVALDI_FINDVALUE
See Also:
Constant Field Values

PROTOCOL_VERSION_ANON_VALUES

static final byte PROTOCOL_VERSION_ANON_VALUES
See Also:
Constant Field Values

PROTOCOL_VERSION_CVS_FIX_OVERLOAD_V1

static final byte PROTOCOL_VERSION_CVS_FIX_OVERLOAD_V1
See Also:
Constant Field Values

PROTOCOL_VERSION_CVS_FIX_OVERLOAD_V2

static final byte PROTOCOL_VERSION_CVS_FIX_OVERLOAD_V2
See Also:
Constant Field Values

PROTOCOL_VERSION_MORE_STATS

static final byte PROTOCOL_VERSION_MORE_STATS
See Also:
Constant Field Values

PROTOCOL_VERSION_CVS_FIX_OVERLOAD_V3

static final byte PROTOCOL_VERSION_CVS_FIX_OVERLOAD_V3
See Also:
Constant Field Values

PROTOCOL_VERSION_MORE_NODE_STATUS

static final byte PROTOCOL_VERSION_MORE_NODE_STATUS
See Also:
Constant Field Values

PROTOCOL_VERSION_LONGER_LIFE

static final byte PROTOCOL_VERSION_LONGER_LIFE
See Also:
Constant Field Values

PROTOCOL_VERSION_REPLICATION_CONTROL

static final byte PROTOCOL_VERSION_REPLICATION_CONTROL
See Also:
Constant Field Values

PROTOCOL_VERSION_REPLICATION_CONTROL2

static final byte PROTOCOL_VERSION_REPLICATION_CONTROL2
See Also:
Constant Field Values

PROTOCOL_VERSION_REPLICATION_CONTROL3

static final byte PROTOCOL_VERSION_REPLICATION_CONTROL3
See Also:
Constant Field Values

PROTOCOL_VERSION_RESTRICT_ID_PORTS

static final byte PROTOCOL_VERSION_RESTRICT_ID_PORTS
See Also:
Constant Field Values

PROTOCOL_VERSION_RESTRICT_ID_PORTS2

static final byte PROTOCOL_VERSION_RESTRICT_ID_PORTS2
See Also:
Constant Field Values

PROTOCOL_VERSION_RESTRICT_ID_PORTS2X

static final byte PROTOCOL_VERSION_RESTRICT_ID_PORTS2X
See Also:
Constant Field Values

PROTOCOL_VERSION_RESTRICT_ID_PORTS2Y

static final byte PROTOCOL_VERSION_RESTRICT_ID_PORTS2Y
See Also:
Constant Field Values

PROTOCOL_VERSION_RESTRICT_ID_PORTS2Z

static final byte PROTOCOL_VERSION_RESTRICT_ID_PORTS2Z
See Also:
Constant Field Values

PROTOCOL_VERSION_RESTRICT_ID3

static final byte PROTOCOL_VERSION_RESTRICT_ID3
See Also:
Constant Field Values

PROTOCOL_VERSION_VIVALDI_OPTIONAL

static final byte PROTOCOL_VERSION_VIVALDI_OPTIONAL
See Also:
Constant Field Values

PROTOCOL_VERSION_PACKET_FLAGS

static final byte PROTOCOL_VERSION_PACKET_FLAGS
See Also:
Constant Field Values

PROTOCOL_VERSION_ALT_CONTACTS

static final byte PROTOCOL_VERSION_ALT_CONTACTS
See Also:
Constant Field Values

PROTOCOL_VERSION_PACKET_FLAGS2

static final byte PROTOCOL_VERSION_PACKET_FLAGS2
See Also:
Constant Field Values

PROTOCOL_VERSION_PROC_TIME

static final byte PROTOCOL_VERSION_PROC_TIME
See Also:
Constant Field Values

PROTOCOL_VERSION_NETWORKS

static final byte PROTOCOL_VERSION_NETWORKS
See Also:
Constant Field Values

PROTOCOL_VERSION_MAIN

static final byte PROTOCOL_VERSION_MAIN

PROTOCOL_VERSION_CVS

static final byte PROTOCOL_VERSION_CVS

PROTOCOL_VERSION_MIN

static final byte PROTOCOL_VERSION_MIN

PROTOCOL_VERSION_MIN_CVS

static final byte PROTOCOL_VERSION_MIN_CVS

VENDOR_ID_AELITIS

static final byte VENDOR_ID_AELITIS
See Also:
Constant Field Values

VENDOR_ID_ShareNET

static final byte VENDOR_ID_ShareNET
See Also:
Constant Field Values

VENDOR_ID_NONE

static final byte VENDOR_ID_NONE
See Also:
Constant Field Values

VENDOR_ID_ME

static final byte VENDOR_ID_ME
See Also:
Constant Field Values
Method Detail

importContact

DHTTransportUDPContact importContact(InetSocketAddress address,
                                     byte protocol_version,
                                     boolean is_bootstrap)
                                     throws DHTTransportException
Throws:
DHTTransportException

importContact

DHTTransportUDPContact importContact(Map<String,Object> map)
                                     throws DHTTransportException
Throws:
DHTTransportException

getRequestHandler

DHTUDPRequestHandler getRequestHandler()

getPacketHandler

DHTUDPPacketHandler getPacketHandler()

getAlternativeNetwork

DHTTransportAlternativeNetwork getAlternativeNetwork(int network_type)

registerAlternativeNetwork

void registerAlternativeNetwork(DHTTransportAlternativeNetwork network)

unregisterAlternativeNetwork

void unregisterAlternativeNetwork(DHTTransportAlternativeNetwork network)