com.aelitis.azureus.core.networkmanager.impl.tcp
Class IncomingSocketChannelManager
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
this_mon
protected AEMonitor this_mon
IncomingSocketChannelManager
public IncomingSocketChannelManager(String _port_config_key,
String _port_enable_config_key)
- Create manager and begin accepting and routing new connections.
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()