FileDocCategorySizeDatePackage
DHTTransportLoopbackContactImpl.javaAPI DocAzureus 3.0.3.43956Mon Apr 24 13:20:30 BST 2006com.aelitis.azureus.core.dht.transport.loopback

DHTTransportLoopbackContactImpl

public class DHTTransportLoopbackContactImpl extends Object implements DHTTransportContact
author
parg

Fields Summary
private DHTTransportLoopbackImpl
transport
private byte[]
id
private int
random_id
Constructors Summary
protected DHTTransportLoopbackContactImpl(DHTTransportLoopbackImpl _transport, byte[] _id)

		transport	= _transport;
		id			= _id;
	
Methods Summary
public voidexportContact(java.io.DataOutputStream os)

		transport.exportContact( this, os );
	
public java.net.InetSocketAddressgetAddress()

		return( null );
	
public longgetClockSkew()

		return( 0 );
	
public byte[]getID()

		return( id );
	
public intgetInstanceID()

		return( 0 );
	
public intgetMaxFailForLiveCount()

		return( 5 );
	
public intgetMaxFailForUnknownCount()

		return( 3 );
	
public java.lang.StringgetName()

		return( "" );
	
public com.aelitis.azureus.core.dht.netcoords.DHTNetworkPositiongetNetworkPosition(byte type)

  		return( null );
  	
public com.aelitis.azureus.core.dht.netcoords.DHTNetworkPosition[]getNetworkPositions()

		return( new DHTNetworkPosition[0] );
	
public bytegetProtocolVersion()

		return( 0 );
	
public intgetRandomID()

		return( random_id );
	
public DHTTransportFullStatsgetStats()

		return( null );
	
public java.lang.StringgetString()

		return( DHTLog.getString( this ));
	
public DHTTransportgetTransport()

		return( transport );
	
public booleanisAlive(long timeout)

		return( true );
	
public booleanisValid()

		return( true );
	
public voidremove()

		transport.removeContact( this );
	
public voidsendFindNode(DHTTransportReplyHandler handler, byte[] nid)

		transport.sendFindNode( this, handler, nid );
	
public voidsendFindValue(DHTTransportReplyHandler handler, byte[] key, int max, byte flags)

		transport.sendFindValue( this, handler, key, max, flags );
	
public voidsendImmediatePing(DHTTransportReplyHandler handler, long timeout)

		transport.sendPing( this, handler );
	
public voidsendKeyBlock(DHTTransportReplyHandler handler, byte[] request, byte[] signature)

		transport.sendKeyBlock( this, handler, request, signature );
	
public voidsendPing(DHTTransportReplyHandler handler)

		transport.sendPing( this, handler );
	
public voidsendStats(DHTTransportReplyHandler handler)

		transport.sendStats( this, handler );
	
public voidsendStore(DHTTransportReplyHandler handler, byte[][] keys, DHTTransportValue[][] value_sets)

		transport.sendStore( this, handler, keys, value_sets );
	
public voidsetRandomID(int _random_id)

		random_id	= _random_id;