FileDocCategorySizeDatePackage
ProtocolEndpointUDP.javaAPI DocAzureus 3.0.3.42513Tue Nov 21 16:13:12 GMT 2006com.aelitis.azureus.core.networkmanager.impl.udp

ProtocolEndpointUDP

public class ProtocolEndpointUDP extends Object implements com.aelitis.azureus.core.networkmanager.ProtocolEndpoint

Fields Summary
private com.aelitis.azureus.core.networkmanager.ConnectionEndpoint
ce
private InetSocketAddress
address
Constructors Summary
public ProtocolEndpointUDP(com.aelitis.azureus.core.networkmanager.ConnectionEndpoint _ce, InetSocketAddress _address)

		ce		= _ce;
		address	= _address;
		
		ce.addProtocol( this );
	
public ProtocolEndpointUDP(InetSocketAddress _address)

		ce		= new ConnectionEndpoint(_address );
		address	= _address;
		
		ce.addProtocol( this );
	
Methods Summary
public com.aelitis.azureus.core.networkmanager.TransportconnectOutbound(boolean connect_with_crypto, boolean allow_fallback, byte[][] shared_secrets, java.nio.ByteBuffer initial_data, com.aelitis.azureus.core.networkmanager.Transport.ConnectListener listener)

		UDPTransport t = new UDPTransport( this, shared_secrets );
		
		t.connectOutbound( initial_data, listener );
		
		return( t );
	
public java.net.InetSocketAddressgetAddress()

		return( address );
	
public com.aelitis.azureus.core.networkmanager.ConnectionEndpointgetConnectionEndpoint()

		return( ce );
	
public java.lang.StringgetDescription()

		return( address.toString());
	
public intgetType()

		return( PROTOCOL_UDP );
	
public voidsetConnectionEndpoint(com.aelitis.azureus.core.networkmanager.ConnectionEndpoint _ce)

		ce	= _ce;
		
		ce.addProtocol( this );