FileDocCategorySizeDatePackage
AESocksProxyImpl.javaAPI DocAzureus 3.0.3.42715Fri Nov 17 13:27:18 GMT 2006com.aelitis.azureus.core.proxy.socks.impl

AESocksProxyImpl

public class AESocksProxyImpl extends Object implements AESocksProxy, AEProxyHandler
author
parg

Fields Summary
private AEProxy
proxy
private AESocksProxyPlugableConnectionFactory
connection_factory
private String
proxy_chain_host
private int
proxy_chain_port
private String
proxy_chain_version
Constructors Summary
public AESocksProxyImpl(int _port, long _ct, long _rt, AESocksProxyPlugableConnectionFactory _connection_factory)

		connection_factory	= _connection_factory;
		
		proxy = AEProxyFactory.create( _port, _ct, _rt, this );
	
Methods Summary
public AESocksProxyPlugableConnectiongetDefaultPlugableConnection(AESocksProxyConnection basis)

		return( new AESocksProxyPlugableConnectionDefault(basis ));
	
public AEProxyStategetInitialState(AEProxyConnection connection)

		return( new AESocksProxyConnectionImpl( this, connection_factory, connection ).getInitialState());
	
public java.lang.StringgetNextSOCKSProxyHost()

		return( proxy_chain_host );
	
public intgetNextSOCKSProxyPort()

		return( proxy_chain_port );
	
public java.lang.StringgetNextSOCKSProxyVersion()

		return( proxy_chain_version );
	
public intgetPort()

		return( proxy.getPort());
	
public voidsetAllowExternalConnections(boolean permit)

		proxy.setAllowExternalConnections( permit );
	
public voidsetNextSOCKSProxy(java.lang.String host, int port, java.lang.String proxy_version)

		proxy_chain_host		= host;
		proxy_chain_port		= port;
		proxy_chain_version		= proxy_version;