Class AESocksProxyImpl
java.lang.Object
com.biglybt.core.proxy.socks.impl.AESocksProxyImpl
- All Implemented Interfaces:
AEProxyHandler
,AESocksProxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AESocksProxyPlugableConnectionFactory
private AEProxy
private String
private int
private String
Fields inherited from interface com.biglybt.core.proxy.socks.AESocksProxy
PV_4, PV_4a, PV_5
-
Constructor Summary
ConstructorsConstructorDescriptionAESocksProxyImpl
(int _port, long _ct, long _rt, AESocksProxyPlugableConnectionFactory _connection_factory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
getInitialState
(AEProxyConnection connection) int
int
getPort()
void
setAllowExternalConnections
(boolean permit) void
setNextSOCKSProxy
(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:
getPort
in interfaceAESocksProxy
-
getDefaultPlugableConnection
- Specified by:
getDefaultPlugableConnection
in interfaceAESocksProxy
-
getInitialState
- Specified by:
getInitialState
in interfaceAEProxyHandler
- Throws:
IOException
-
setNextSOCKSProxy
Description copied from interface:AESocksProxy
Set 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:
setNextSOCKSProxy
in interfaceAESocksProxy
-
getNextSOCKSProxyHost
- Specified by:
getNextSOCKSProxyHost
in interfaceAESocksProxy
-
getNextSOCKSProxyPort
public int getNextSOCKSProxyPort()- Specified by:
getNextSOCKSProxyPort
in interfaceAESocksProxy
-
getNextSOCKSProxyVersion
- Specified by:
getNextSOCKSProxyVersion
in interfaceAESocksProxy
-
setAllowExternalConnections
public void setAllowExternalConnections(boolean permit) - Specified by:
setAllowExternalConnections
in interfaceAESocksProxy
-
destroy
public void destroy()- Specified by:
destroy
in interfaceAESocksProxy
-