com.aelitis.azureus.core.networkmanager.impl.tcp
Class IncomingSocketChannelManager

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.impl.tcp.IncomingSocketChannelManager

public class IncomingSocketChannelManager
extends Object

Accepts new incoming socket connections and manages routing of them to registered handlers.


Field Summary
protected  AEMonitor this_mon
           
 
Constructor Summary
IncomingSocketChannelManager(String _port_config_key, String _port_enable_config_key)
          Create manager and begin accepting and routing new connections.
 
Method Summary
 void clearExplicitBindAddress()
           
protected  InetAddress[] getEffectiveBindAddresses()
           
protected  long getLastNonLocalConnectionTime()
           
 int getTCPListeningPortNumber()
          Get port that the TCP server socket is listening for incoming connections on.
 boolean isEffectiveBindAddress(InetAddress address)
           
 boolean isEnabled()
           
protected  void process(int local_port, TransportHelperFilter filter)
           
 void setExplicitBindAddress(InetAddress address)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

this_mon

protected final AEMonitor this_mon
Constructor Detail

IncomingSocketChannelManager

public IncomingSocketChannelManager(String _port_config_key,
                                    String _port_enable_config_key)
Create manager and begin accepting and routing new connections.

Method Detail

isEnabled

public boolean isEnabled()

getTCPListeningPortNumber

public int getTCPListeningPortNumber()
Get port that the TCP server socket is listening for incoming connections on.

Returns:
port number

setExplicitBindAddress

public void setExplicitBindAddress(InetAddress address)

clearExplicitBindAddress

public void clearExplicitBindAddress()

getEffectiveBindAddresses

protected InetAddress[] getEffectiveBindAddresses()

isEffectiveBindAddress

public boolean isEffectiveBindAddress(InetAddress address)

process

protected void process(int local_port,
                       TransportHelperFilter filter)

getLastNonLocalConnectionTime

protected long getLastNonLocalConnectionTime()