Package net.i2p.client.streaming
Class AcceptingChannel
- java.lang.Object
-
- java.nio.channels.spi.AbstractInterruptibleChannel
-
- java.nio.channels.SelectableChannel
-
- net.i2p.client.streaming.AcceptingChannel
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,InterruptibleChannel
public abstract class AcceptingChannel extends SelectableChannel
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.- Since:
- 0.8.11
-
-
Field Summary
Fields Modifier and Type Field Description protected I2PSocketManager
_socketManager
-
Constructor Summary
Constructors Modifier Constructor Description protected
AcceptingChannel(I2PSocketManager manager)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract I2PSocket
accept()
-
Methods inherited from class java.nio.channels.SelectableChannel
blockingLock, configureBlocking, isBlocking, isRegistered, keyFor, provider, register, register, validOps
-
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, implCloseChannel, isOpen
-
-
-
-
Field Detail
-
_socketManager
protected final I2PSocketManager _socketManager
-
-
Constructor Detail
-
AcceptingChannel
protected AcceptingChannel(I2PSocketManager manager)
-
-
Method Detail
-
accept
protected abstract I2PSocket accept() throws I2PException, ConnectException
- Throws:
I2PException
ConnectException
-
-