|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.klomp.snark.ConnectionAcceptor
class ConnectionAcceptor
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 |
---|
public ConnectionAcceptor(I2PSnarkUtil util, PeerCoordinatorSet set)
public ConnectionAcceptor(I2PSnarkUtil util, PeerAcceptor peeracceptor)
Method Detail |
---|
public void startAccepting()
public void halt()
public void restart()
public int getPort()
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |