Class AEProxyAddressMapperImpl
java.lang.Object
com.biglybt.core.proxy.impl.AEProxyAddressMapperImpl
- All Implemented Interfaces:
AEProxyAddressMapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate classNested classes/interfaces inherited from interface AEProxyAddressMapper
AEProxyAddressMapper.AppliedPortMapping, AEProxyAddressMapper.PortMapping -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected long(package private) final Map<Integer, AEProxyAddressMapperImpl.PortMappingImpl> protected Stringprotected static final AEProxyAddressMapperprotected final AEMonitorFields inherited from interface 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 AEProxyAddressMapperinternalise(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:AEProxyAddressMapperSOCKS 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:
internalisein interfaceAEProxyAddressMapper- Parameters:
address-- Returns:
-
externalise
- Specified by:
externalisein interfaceAEProxyAddressMapper
-
internalise
- Specified by:
internalisein interfaceAEProxyAddressMapper
-
externalise
- Specified by:
externalisein interfaceAEProxyAddressMapper
-
registerPortMapping
- Specified by:
registerPortMappingin interfaceAEProxyAddressMapper
-
registerPortMapping
public AEProxyAddressMapper.PortMapping registerPortMapping(int proxy_port, String remote_ip, Map<String, Object> properties) - Specified by:
registerPortMappingin 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:
registerPortMappingin interfaceAEProxyAddressMapper
-
applyPortMapping
- Specified by:
applyPortMappingin interfaceAEProxyAddressMapper
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceAEProxyAddressMapper
-