Package org.klomp.snark
Class ConnectionAcceptor
- java.lang.Object
-
- org.klomp.snark.ConnectionAcceptor
-
-
Constructor Summary
Constructors Constructor Description ConnectionAcceptor(I2PSnarkUtil util, PeerAcceptor peeracceptor)Unused (single torrent).ConnectionAcceptor(I2PSnarkUtil util, PeerCoordinatorSet set)Multitorrent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPort()voidhalt()May be restarted later with startAccepting().voidrestart()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 runningvoidrun()voidstartAccepting()May be called even when already running.
-
-
-
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()
-
-