org.klomp.snark
Class PeerAcceptor
java.lang.Object
org.klomp.snark.PeerAcceptor
public class PeerAcceptor
- extends java.lang.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.
Method Summary |
void |
connection(I2PSocket socket,
java.io.InputStream in,
java.io.OutputStream out)
|
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,
java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException