Package com.biglybt.core.proxy.impl
Class AEProxyAddressMapperImpl
java.lang.Object
com.biglybt.core.proxy.impl.AEProxyAddressMapperImpl
- All Implemented Interfaces:
AEProxyAddressMapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private class
Nested classes/interfaces inherited from interface com.biglybt.core.proxy.AEProxyAddressMapper
AEProxyAddressMapper.AppliedPortMapping, AEProxyAddressMapper.PortMapping
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected long
(package private) final Map<Integer,
AEProxyAddressMapperImpl.PortMappingImpl> protected String
protected static final AEProxyAddressMapper
protected final AEMonitor
Fields inherited from interface com.biglybt.core.proxy.AEProxyAddressMapper
MAP_PROPERTY_CONNECTION_INCOMING, MAP_PROPERTY_DISABLE_AZ_MESSAGING, MAP_PROPERTY_PROTOCOL_QUALIFIER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyPortMapping
(InetAddress address, int port) externalise
(String address) externalise
(URL url) getLocalAddress
(InetSocketAddress remote) static AEProxyAddressMapper
internalise
(String address) SOCKS 5 is limited to 255 char DNS names.internalise
(URL url) registerPortMapping
(int proxy_port, int local_port, String local_ip, int remote_port, String remote_ip, Map<String, Object> properties) registerPortMapping
(int proxy_port, String remote_ip) registerPortMapping
(int proxy_port, String remote_ip, Map<String, Object> properties)
-
Field Details
-
singleton
-
enabled
protected boolean enabled -
prefix
-
next_value
protected long next_value -
map
-
reverse_map
-
this_mon
-
port_mappings
-
-
Constructor Details
-
AEProxyAddressMapperImpl
protected AEProxyAddressMapperImpl()
-
-
Method Details
-
getSingleton
-
internalise
Description copied from interface:AEProxyAddressMapper
SOCKS 5 is limited to 255 char DNS names. So for longer ones (e.g. I2P 'names') we have to replace then with somethin shorter to get through the SOCKS layer and then remap them on the otherside. These functions are only active if a SOCKS proxy is enabled and looping back (in process is the assumption)- Specified by:
internalise
in interfaceAEProxyAddressMapper
- Returns:
-
externalise
- Specified by:
externalise
in interfaceAEProxyAddressMapper
-
internalise
- Specified by:
internalise
in interfaceAEProxyAddressMapper
-
externalise
- Specified by:
externalise
in interfaceAEProxyAddressMapper
-
registerPortMapping
- Specified by:
registerPortMapping
in interfaceAEProxyAddressMapper
-
registerPortMapping
public AEProxyAddressMapper.PortMapping registerPortMapping(int proxy_port, String remote_ip, Map<String, Object> properties) - Specified by:
registerPortMapping
in interfaceAEProxyAddressMapper
-
registerPortMapping
public AEProxyAddressMapper.PortMapping registerPortMapping(int proxy_port, int local_port, String local_ip, int remote_port, String remote_ip, Map<String, Object> properties) - Specified by:
registerPortMapping
in interfaceAEProxyAddressMapper
-
applyPortMapping
- Specified by:
applyPortMapping
in interfaceAEProxyAddressMapper
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceAEProxyAddressMapper
-