Package com.sshtools.synergy.nio
Class ClientAcceptor
java.lang.Object
com.sshtools.synergy.nio.ClientAcceptor
- Direct Known Subclasses:
SocketListeningForwardingChannelFactoryImpl
An abstract class for the NIO framework to accept client connections.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an acceptor with a protocol context. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinishAccept(SelectionKey key) Called by the framework when the OP_ACCEPT event is fired for this acceptor.abstract booleanfinishAccept(SelectionKey key, ListeningInterface li) Complete the accept operation.abstract voidStop accepting clients
-
Constructor Details
-
ClientAcceptor
Construct an acceptor with a protocol context.- Parameters:
protocolContext- ProtocolContext
-
-
Method Details
-
finishAccept
Called by the framework when the OP_ACCEPT event is fired for this acceptor.- Parameters:
key- SelectionKey
-
finishAccept
Complete the accept operation.- Parameters:
key- SelectionKeyprotocolContext- ProtocolContext- Returns:
- boolean
-
stopAccepting
Stop accepting clients- Throws:
IOException
-