com.aelitis.azureus.core.networkmanager.impl.tcp
Class ProxyLoginHandler

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.impl.tcp.ProxyLoginHandler

public class ProxyLoginHandler
extends Object

Handles the process of proxy login/authentication/setup.


Nested Class Summary
static interface ProxyLoginHandler.ProxyListener
           
 
Field Summary
static InetSocketAddress DEFAULT_SOCKS_SERVER_ADDRESS
           
 
Constructor Summary
ProxyLoginHandler(TCPTransportImpl proxy_connection, InetSocketAddress remote_address, ProxyLoginHandler.ProxyListener listener)
          Do proxy login.
ProxyLoginHandler(TCPTransportImpl _proxy_connection, InetSocketAddress _remote_address, ProxyLoginHandler.ProxyListener _listener, String _socks_version, String _socks_user, String _socks_password)
           
 
Method Summary
static InetSocketAddress getProxyAddress(InetSocketAddress target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SOCKS_SERVER_ADDRESS

public static InetSocketAddress DEFAULT_SOCKS_SERVER_ADDRESS
Constructor Detail

ProxyLoginHandler

public ProxyLoginHandler(TCPTransportImpl proxy_connection,
                         InetSocketAddress remote_address,
                         ProxyLoginHandler.ProxyListener listener)
Do proxy login.

Parameters:
proxy_connection - transport connected to proxy server
remote_address - address to proxy to
listener - for proxy login success or faulure

ProxyLoginHandler

public ProxyLoginHandler(TCPTransportImpl _proxy_connection,
                         InetSocketAddress _remote_address,
                         ProxyLoginHandler.ProxyListener _listener,
                         String _socks_version,
                         String _socks_user,
                         String _socks_password)
Method Detail

getProxyAddress

public static InetSocketAddress getProxyAddress(InetSocketAddress target)