Package org.klomp.snark
Class PeerAcceptor
java.lang.Object
org.klomp.snark.PeerAcceptor
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
Modifier and TypeClassDescriptionstatic class
A unique exception so we can tell the ConnectionAcceptor about non-BT connections -
Field Summary
-
Constructor Summary
ConstructorDescriptionPeerAcceptor
(PeerCoordinator coordinator) PeerAcceptor
(PeerCoordinatorSet coordinators) -
Method Summary
Modifier and TypeMethodDescriptionvoid
connection
(I2PSocket socket, InputStream in, OutputStream out)
-
Field Details
-
coordinators
-
-
Constructor Details
-
PeerAcceptor
-
PeerAcceptor
-
-
Method Details
-
connection
- Throws:
IOException
-