Package 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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PeerAcceptor.ProtocolException
A unique exception so we can tell the ConnectionAcceptor about non-BT connections -
Field Summary
Fields Modifier and Type Field Description (package private) PeerCoordinatorSet
coordinators
-
Constructor Summary
Constructors Constructor Description PeerAcceptor(PeerCoordinator coordinator)
PeerAcceptor(PeerCoordinatorSet coordinators)
-
Method Summary
Modifier and Type Method Description void
connection(I2PSocket socket, InputStream in, OutputStream out)
-
Field Details
-
Constructor Details
-
Method Details
-
connection
- Throws:
IOException
-