org.klomp.snark
Class PeerAcceptor
java.lang.Object
org.klomp.snark.PeerAcceptor
class PeerAcceptor
- extends Object
Accepts incomming connections from peers. The ConnectionAcceptor
will call the connection() method when it detects an incomming BT
protocol connection. The PeerAcceptor will then create a new peer
if the PeerCoordinator wants more peers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
coordinators
final PeerCoordinatorSet coordinators
PeerAcceptor
public PeerAcceptor(PeerCoordinator coordinator)
PeerAcceptor
public PeerAcceptor(PeerCoordinatorSet coordinators)
connection
public void connection(I2PSocket socket,
InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException