com.aelitis.azureus.core.proxy.socks.impl
Class AESocksProxyState

java.lang.Object
  extended by com.aelitis.azureus.core.proxy.socks.impl.AESocksProxyState
All Implemented Interfaces:
AEProxyState
Direct Known Subclasses:
AESocksProxyPlugableConnectionDefault.proxyStateRelayConnect, AESocksProxyPlugableConnectionDefault.proxyStateRelayData

public class AESocksProxyState
extends java.lang.Object
implements AEProxyState

Author:
parg

Field Summary
protected  java.nio.ByteBuffer buffer
           
 
Constructor Summary
protected AESocksProxyState(AESocksProxyConnection _socks_connection)
           
 
Method Summary
 boolean connect(java.nio.channels.SocketChannel sc)
           
protected  boolean connectSupport(java.nio.channels.SocketChannel sc)
           
 java.lang.String getStateName()
           
 boolean read(java.nio.channels.SocketChannel sc)
           
protected  boolean readSupport(java.nio.channels.SocketChannel sc)
           
protected  void trace()
           
 boolean write(java.nio.channels.SocketChannel sc)
           
protected  boolean writeSupport(java.nio.channels.SocketChannel sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected java.nio.ByteBuffer buffer
Constructor Detail

AESocksProxyState

protected AESocksProxyState(AESocksProxyConnection _socks_connection)
Method Detail

getStateName

public java.lang.String getStateName()
Specified by:
getStateName in interface AEProxyState

read

public final boolean read(java.nio.channels.SocketChannel sc)
                   throws java.io.IOException
Specified by:
read in interface AEProxyState
Throws:
java.io.IOException

readSupport

protected boolean readSupport(java.nio.channels.SocketChannel sc)
                       throws java.io.IOException
Throws:
java.io.IOException

write

public final boolean write(java.nio.channels.SocketChannel sc)
                    throws java.io.IOException
Specified by:
write in interface AEProxyState
Throws:
java.io.IOException

writeSupport

protected boolean writeSupport(java.nio.channels.SocketChannel sc)
                        throws java.io.IOException
Throws:
java.io.IOException

connect

public final boolean connect(java.nio.channels.SocketChannel sc)
                      throws java.io.IOException
Specified by:
connect in interface AEProxyState
Throws:
java.io.IOException

connectSupport

protected boolean connectSupport(java.nio.channels.SocketChannel sc)
                          throws java.io.IOException
Throws:
java.io.IOException

trace

protected void trace()