Class AESocksProxyImpl
java.lang.Object
com.biglybt.core.proxy.socks.impl.AESocksProxyImpl
- All Implemented Interfaces:
AEProxyHandler, AESocksProxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AESocksProxyPlugableConnectionFactoryprivate AEProxyprivate Stringprivate intprivate StringFields inherited from interface AESocksProxy
PV_4, PV_4a, PV_5 -
Constructor Summary
ConstructorsConstructorDescriptionAESocksProxyImpl(int _port, long _ct, long _rt, AESocksProxyPlugableConnectionFactory _connection_factory) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()getInitialState(AEProxyConnection connection) intintgetPort()voidsetAllowExternalConnections(boolean permit) voidsetNextSOCKSProxy(String host, int port, String proxy_version) Set the next SOCKS proxy in a chain - i.e.
-
Field Details
-
proxy
-
connection_factory
-
proxy_chain_host
-
proxy_chain_port
private int proxy_chain_port -
proxy_chain_version
-
-
Constructor Details
-
AESocksProxyImpl
public AESocksProxyImpl(int _port, long _ct, long _rt, AESocksProxyPlugableConnectionFactory _connection_factory) throws AEProxyException - Throws:
AEProxyException
-
-
Method Details
-
getPort
public int getPort()- Specified by:
getPortin interfaceAESocksProxy
-
getDefaultPlugableConnection
- Specified by:
getDefaultPlugableConnectionin interfaceAESocksProxy
-
getInitialState
- Specified by:
getInitialStatein interfaceAEProxyHandler- Throws:
IOException
-
setNextSOCKSProxy
Description copied from interface:AESocksProxySet the next SOCKS proxy in a chain - i.e. this socks proxy's default plugable connection will connect onwards using this SOCKS proxy- Specified by:
setNextSOCKSProxyin interfaceAESocksProxy- Parameters:
host-port-
-
getNextSOCKSProxyHost
- Specified by:
getNextSOCKSProxyHostin interfaceAESocksProxy
-
getNextSOCKSProxyPort
public int getNextSOCKSProxyPort()- Specified by:
getNextSOCKSProxyPortin interfaceAESocksProxy
-
getNextSOCKSProxyVersion
- Specified by:
getNextSOCKSProxyVersionin interfaceAESocksProxy
-
setAllowExternalConnections
public void setAllowExternalConnections(boolean permit) - Specified by:
setAllowExternalConnectionsin interfaceAESocksProxy
-
destroy
public void destroy()- Specified by:
destroyin interfaceAESocksProxy
-