org.klomp.snark
Class ConnectionAcceptor

java.lang.Object
  extended by org.klomp.snark.ConnectionAcceptor
All Implemented Interfaces:
Runnable

 class ConnectionAcceptor
extends Object
implements Runnable

Accepts connections on a I2PServerSocket and routes them to PeerAcceptors.


Constructor Summary
ConnectionAcceptor(I2PSnarkUtil util, PeerAcceptor peeracceptor)
          Unused (single torrent).
ConnectionAcceptor(I2PSnarkUtil util, PeerCoordinatorSet set)
          Multitorrent.
 
Method Summary
 int getPort()
           
 void halt()
          May be restarted later with startAccepting().
 void restart()
          Effectively unused, would only be called if we changed I2CP host/port, which is hidden in the gui if in router context FIXME this only works if already running
 void run()
           
 void startAccepting()
          May be called even when already running.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionAcceptor

public ConnectionAcceptor(I2PSnarkUtil util,
                          PeerCoordinatorSet set)
Multitorrent. Caller MUST call startAccepting()


ConnectionAcceptor

public ConnectionAcceptor(I2PSnarkUtil util,
                          PeerAcceptor peeracceptor)
Unused (single torrent). Do NOT call startAccepting().

Method Detail

startAccepting

public void startAccepting()
May be called even when already running. May be called to start up again after halt().


halt

public void halt()
May be restarted later with startAccepting().


restart

public void restart()
Effectively unused, would only be called if we changed I2CP host/port, which is hidden in the gui if in router context FIXME this only works if already running


getPort

public int getPort()

run

public void run()
Specified by:
run in interface Runnable