com.aelitis.azureus.core.proxy
Interface AEProxyAddressMapper

All Known Implementing Classes:
AEProxyAddressMapperImpl

public interface AEProxyAddressMapper

Author:
parg

Nested Class Summary
static interface AEProxyAddressMapper.AppliedPortMapping
           
static interface AEProxyAddressMapper.PortMapping
           
 
Field Summary
static String MAP_PROPERTY_DISABLE_AZ_MESSAGING
           
static String MAP_PROPERTY_PROTOCOL_QUALIFIER
           
 
Method Summary
 AEProxyAddressMapper.AppliedPortMapping applyPortMapping(InetAddress address, int port)
           
 String externalise(String address)
           
 URL externalise(URL url)
           
 String internalise(String address)
          SOCKS 5 is limited to 255 char DNS names.
 URL internalise(URL url)
           
 AEProxyAddressMapper.PortMapping registerPortMapping(int local_port, String ip)
           
 AEProxyAddressMapper.PortMapping registerPortMapping(int local_port, String ip, Map<String,Object> properties)
           
 

Field Detail

MAP_PROPERTY_DISABLE_AZ_MESSAGING

static final String MAP_PROPERTY_DISABLE_AZ_MESSAGING
See Also:
Constant Field Values

MAP_PROPERTY_PROTOCOL_QUALIFIER

static final String MAP_PROPERTY_PROTOCOL_QUALIFIER
See Also:
Constant Field Values
Method Detail

internalise

String internalise(String address)
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)

Parameters:
address -
Returns:

externalise

String externalise(String address)

internalise

URL internalise(URL url)

externalise

URL externalise(URL url)

registerPortMapping

AEProxyAddressMapper.PortMapping registerPortMapping(int local_port,
                                                     String ip)

registerPortMapping

AEProxyAddressMapper.PortMapping registerPortMapping(int local_port,
                                                     String ip,
                                                     Map<String,Object> properties)

applyPortMapping

AEProxyAddressMapper.AppliedPortMapping applyPortMapping(InetAddress address,
                                                         int port)