java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
net.i2p.client.streaming.AcceptingChannel
- All Implemented Interfaces:
Closeable, AutoCloseable, Channel, InterruptibleChannel
As this does not (yet) extend ServerSocketChannel it cannot be returned by
StandardServerSocket#getChannel, until we implement an I2P SocketAddress class. Warning, this interface and implementation is preliminary and subject to change without notice. Unimplemented, unlikely to ever be implemented.Field Summary
FieldsConstructor Summary
ConstructorsModifierConstructorDescriptionprotectedAcceptingChannel(I2PSocketManager manager) Create a new accepting channel.Method Summary
All MethodsMethods inherited from class SelectableChannel
blockingLock, configureBlocking, isBlocking, isRegistered, keyFor, provider, register, register, validOpsMethods inherited from class AbstractInterruptibleChannel
begin, close, end, implCloseChannel, isOpen
Field Details
_socketManager
Socket manager for this channel.
Constructor Details
AcceptingChannel
Create a new accepting channel.- Parameters:
manager- the socket manager
Method Details
accept
Accept an incoming connection.- Returns:
- the accepted I2P socket
- Throws:
I2PException- if an I2P error occursConnectException- if a connection error occurs