forked from I2P_Developers/i2p.i2p
* Streaming; Drop the preliminary channel implementations,
as added by 'dream' in late 2011. Testing couldn't have happened, as they don't work and can't ever work as designed. Channels must have underlying file descriptors unless you implement your own Selector and that would probably require JNI. See http://zzz.i2p/topics/1229 for details. Also http://stackoverflow.com/questions/911780/how-do-i-define-my-own-selectablechannel
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package net.i2p.client.streaming;
|
||||
|
||||
import net.i2p.client.streaming.I2PSocket;
|
||||
import net.i2p.client.streaming.I2PSocketManager;
|
||||
import net.i2p.I2PException;
|
||||
import java.net.ConnectException;
|
||||
import java.nio.channels.SelectableChannel;
|
||||
@@ -12,6 +10,8 @@ import java.nio.channels.SelectableChannel;
|
||||
*
|
||||
* Warning, this interface and implementation is preliminary and subject to change without notice.
|
||||
*
|
||||
* Unimplemented, unlikely to ever be implemented.
|
||||
*
|
||||
* @since 0.8.11
|
||||
*/
|
||||
public abstract class AcceptingChannel extends SelectableChannel {
|
||||
|
@@ -32,6 +32,10 @@ public interface I2PServerSocket {
|
||||
public I2PSocket accept() throws I2PException, ConnectException, SocketTimeoutException;
|
||||
|
||||
/**
|
||||
* Unimplemented, unlikely to ever be implemented.
|
||||
*
|
||||
* @deprecated
|
||||
* @return null always
|
||||
* @since 0.8.11
|
||||
*/
|
||||
public AcceptingChannel getChannel();
|
||||
|
@@ -43,6 +43,10 @@ public interface I2PSocket extends Closeable {
|
||||
public OutputStream getOutputStream() throws IOException;
|
||||
|
||||
/**
|
||||
* Unimplemented, unlikely to ever be implemented.
|
||||
*
|
||||
* @deprecated
|
||||
* @return null always
|
||||
* @since 0.8.9
|
||||
*/
|
||||
public SelectableChannel getChannel() throws IOException;
|
||||
|
Reference in New Issue
Block a user