FileDocCategorySizeDatePackage
DHTTransport.javaAPI DocAzureus 3.0.3.42755Thu Feb 09 19:42:48 GMT 2006com.aelitis.azureus.core.dht.transport

DHTTransport

public interface DHTTransport
author
parg

Fields Summary
Constructors Summary
Methods Summary
public voidaddListener(DHTTransportListener l)

public DHTTransportContactgetLocalContact()
Gives access to the node ID for this transport

return

public intgetNetwork()

public intgetPort()

public bytegetProtocolVersion()

public DHTTransportContact[]getReachableContacts()

public DHTTransportStatsgetStats()

public DHTTransportContactimportContact(java.io.DataInputStream is)

public booleanisReachable()

public byte[]readTransfer(DHTTransportProgressListener listener, DHTTransportContact target, byte[] handler_key, byte[] key, long timeout)

public voidregisterTransferHandler(byte[] handler_key, DHTTransportTransferHandler handler)

public voidremoveListener(DHTTransportListener l)

public voidsetPort(int port)

public voidsetRequestHandler(DHTTransportRequestHandler receiver)
Set the handler for incoming requests

param
receiver

public booleansupportsStorage()

public byte[]writeReadTransfer(DHTTransportProgressListener listener, DHTTransportContact target, byte[] handler_key, byte[] data, long timeout)

public voidwriteTransfer(DHTTransportProgressListener listener, DHTTransportContact target, byte[] handler_key, byte[] key, byte[] data, long timeout)