com.aelitis.azureus.core.proxy
Interface AEProxyAddressMapper

All Known Implementing Classes:
AEProxyAddressMapperImpl

public interface AEProxyAddressMapper

Author:
parg

Nested Class Summary
static interface AEProxyAddressMapper.PortMapping
           
 
Method Summary
 InetSocketAddress 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)
           
 

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)

applyPortMapping

InetSocketAddress applyPortMapping(InetAddress address,
                                   int port)