Methods Summary |
---|
public void | close()
if ( target_channel != null ){
try{
connection.cancelReadSelect( target_channel );
connection.cancelWriteSelect( target_channel );
target_channel.close();
}catch( Throwable e ){
Debug.printStackTrace(e);
}
}
if ( relay_data_state != null ){
relay_data_state.destroy();
}
|
public void | connect(AESocksProxyAddress _address)
if ( _address.getAddress() == null ){
throw( new IOException( "DNS lookup of '" + _address.getUnresolvedAddress() + "' fails" ));
}
new proxyStateRelayConnect( new InetSocketAddress(_address.getAddress(), _address.getPort()));
|
public java.net.InetAddress | getLocalAddress()
return( target_channel.socket().getInetAddress());
|
public int | getLocalPort()
return( target_channel.socket().getPort());
|
public java.lang.String | getName()
if ( target_channel != null ){
return( target_channel.socket().getInetAddress() + ":" + target_channel.socket().getPort());
}
return( "" );
|
public void | relayData()
new proxyStateRelayData();
|