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

java.lang.Object
  extended by com.aelitis.azureus.core.proxy.socks.impl.AESocksProxyPlugableConnectionDefault
All Implemented Interfaces:
AESocksProxyPlugableConnection

public class AESocksProxyPlugableConnectionDefault
extends Object
implements AESocksProxyPlugableConnection

Author:
parg

Nested Class Summary
protected  class AESocksProxyPlugableConnectionDefault.proxyStateRelayConnect
           
protected  class AESocksProxyPlugableConnectionDefault.proxyStateRelayData
           
 
Field Summary
protected  AEProxyConnection connection
           
protected  AESocksProxyPlugableConnectionDefault.proxyStateRelayData relay_data_state
           
protected  AESocksProxyConnection socks_connection
           
protected  SocketChannel source_channel
           
protected  SocketChannel target_channel
           
 
Constructor Summary
AESocksProxyPlugableConnectionDefault(AESocksProxyConnection _socks_connection)
           
 
Method Summary
 void close()
           
 void connect(AESocksProxyAddress _address)
           
 InetAddress getLocalAddress()
           
 int getLocalPort()
           
 String getName()
           
 void relayData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socks_connection

protected AESocksProxyConnection socks_connection

connection

protected AEProxyConnection connection

source_channel

protected SocketChannel source_channel

target_channel

protected SocketChannel target_channel

relay_data_state

protected AESocksProxyPlugableConnectionDefault.proxyStateRelayData relay_data_state
Constructor Detail

AESocksProxyPlugableConnectionDefault

public AESocksProxyPlugableConnectionDefault(AESocksProxyConnection _socks_connection)
Method Detail

getName

public String getName()
Specified by:
getName in interface AESocksProxyPlugableConnection

getLocalAddress

public InetAddress getLocalAddress()
Specified by:
getLocalAddress in interface AESocksProxyPlugableConnection

getLocalPort

public int getLocalPort()
Specified by:
getLocalPort in interface AESocksProxyPlugableConnection

connect

public void connect(AESocksProxyAddress _address)
             throws IOException
Specified by:
connect in interface AESocksProxyPlugableConnection
Throws:
IOException

relayData

public void relayData()
               throws IOException
Specified by:
relayData in interface AESocksProxyPlugableConnection
Throws:
IOException

close

public void close()
Specified by:
close in interface AESocksProxyPlugableConnection