Files
i2p.i2p/apps/ministreaming/java/src/net/i2p/client/streaming/AcceptingChannel.java

27 lines
807 B
Java
Raw Normal View History

package net.i2p.client.streaming;
import net.i2p.I2PException;
import java.net.ConnectException;
import java.nio.channels.SelectableChannel;
2011-11-07 14:21:07 +00:00
/**
* 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.
*
2011-11-07 14:21:07 +00:00
* @since 0.8.11
*/
public abstract class AcceptingChannel extends SelectableChannel {
2014-01-04 19:56:55 +00:00
protected abstract I2PSocket accept() throws I2PException, ConnectException;
protected final I2PSocketManager _socketManager;
protected AcceptingChannel(I2PSocketManager manager) {
this._socketManager = manager;
}
}