FileDocCategorySizeDatePackage
ProtocolEndpointTCP.javaAPI DocAzureus 3.0.3.42779Tue Nov 21 16:13:12 GMT 2006com.aelitis.azureus.core.networkmanager.impl.tcp

ProtocolEndpointTCP

public class ProtocolEndpointTCP 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 ProtocolEndpointTCP(com.aelitis.azureus.core.networkmanager.ConnectionEndpoint _ce, InetSocketAddress _address)

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

		ce		= new ConnectionEndpoint(_address );
		address	= _address;
		
		ce.addProtocol( this );
	
Methods Summary
public com.aelitis.azureus.core.networkmanager.TransportconnectLightWeight(java.nio.channels.SocketChannel sc)

		return new LightweightTCPTransport( this, TCPTransportHelperFilterFactory.createTransparentFilter( sc ) );
	
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)

		TCPTransportImpl t = new TCPTransportImpl( this, connect_with_crypto, allow_fallback, 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_TCP );
	
public voidsetConnectionEndpoint(com.aelitis.azureus.core.networkmanager.ConnectionEndpoint _ce)

		ce	= _ce;
		
		ce.addProtocol( this );