net.i2p.client.streaming
Class AcceptingChannel

java.lang.Object
  extended by java.nio.channels.spi.AbstractInterruptibleChannel
      extended by java.nio.channels.SelectableChannel
          extended by net.i2p.client.streaming.AcceptingChannel
All Implemented Interfaces:
Closeable, 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
protected  I2PSocketManager _socketManager
           
 
Constructor Summary
protected AcceptingChannel(I2PSocketManager manager)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.nio.channels.Channel
close, 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