FileDocCategorySizeDatePackage
AESocksProxyState.javaAPI DocAzureus 3.0.3.43060Thu Feb 09 19:42:52 GMT 2006com.aelitis.azureus.core.proxy.socks.impl

AESocksProxyState

public class AESocksProxyState extends Object implements AEProxyState
author
parg

Fields Summary
private static final LogIDs
LOGID
private AESocksProxyConnection
socks_connection
protected ByteBuffer
buffer
Constructors Summary
protected AESocksProxyState(AESocksProxyConnection _socks_connection)


	
	
			 
	
		socks_connection	= _socks_connection;
		
		if ( AESocksProxyConnectionImpl.TRACE ){
			Logger.log(new LogEvent(LOGID, socks_connection.getConnection().getName()
					+ ":" + getStateName()));
		}
	
Methods Summary
public final booleanconnect(java.nio.channels.SocketChannel sc)

		try{
			return( connectSupport(sc));
			
		}finally{
			
			trace();
		}
	
protected booleanconnectSupport(java.nio.channels.SocketChannel sc)

		throw( new IOException( "Connect not supported: " + sc ));
	
public java.lang.StringgetStateName()

		String	state = this.getClass().getName();
		
		int	pos = state.indexOf( "$");
		
		state = state.substring(pos+1);
		
		return( state  + ", buffer = " + buffer );
	
public final booleanread(java.nio.channels.SocketChannel sc)

		try{
			return( readSupport(sc));
			
		}finally{
			
			trace();
		}
	
protected booleanreadSupport(java.nio.channels.SocketChannel sc)

		throw( new IOException( "Read not supported: " + sc ));
	
protected voidtrace()

		if ( AESocksProxyConnectionImpl.TRACE ){
			Logger.log(new LogEvent(LOGID, socks_connection.getConnection().getName()
					+ ":" + getStateName()));
		}
	
public final booleanwrite(java.nio.channels.SocketChannel sc)

		try{
			return( writeSupport(sc));
			
		}finally{
			
			trace();
		}		
	
protected booleanwriteSupport(java.nio.channels.SocketChannel sc)

		throw( new IOException( "Write not supported: " + sc ));