forked from I2P_Developers/i2p.i2p
javadoc
This commit is contained in:
@@ -6,6 +6,9 @@ import net.i2p.I2PException;
|
||||
import java.net.ConnectException;
|
||||
import java.nio.channels.SelectableChannel;
|
||||
|
||||
/**
|
||||
* @since 0.8.11
|
||||
*/
|
||||
public abstract class AcceptingChannel extends SelectableChannel {
|
||||
abstract I2PSocket accept() throws I2PException, ConnectException;
|
||||
I2PSocketManager _socketManager;
|
||||
|
@@ -31,6 +31,9 @@ public interface I2PServerSocket {
|
||||
*/
|
||||
public I2PSocket accept() throws I2PException, ConnectException, SocketTimeoutException;
|
||||
|
||||
/**
|
||||
* @since 0.8.11
|
||||
*/
|
||||
public AcceptingChannel getChannel();
|
||||
|
||||
/**
|
||||
|
@@ -12,6 +12,9 @@ import java.nio.channels.Selector;
|
||||
import java.nio.channels.spi.AbstractSelectionKey;
|
||||
import java.nio.channels.spi.SelectorProvider;
|
||||
|
||||
/**
|
||||
* @since 0.8.11
|
||||
*/
|
||||
public class AcceptingChannelImpl extends AcceptingChannel {
|
||||
boolean _isRegistered = false;
|
||||
SelectionKey whichKey = null;
|
||||
|
@@ -25,6 +25,9 @@ class I2PServerSocketFull implements I2PServerSocket {
|
||||
return _socketManager.receiveSocket();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 0.8.11
|
||||
*/
|
||||
public AcceptingChannel getChannel() {
|
||||
return new AcceptingChannelImpl(_socketManager);
|
||||
}
|
||||
|
@@ -221,7 +221,7 @@ public class BloomSHA1 {
|
||||
|
||||
/**
|
||||
* Get the bloom filter offsets for reuse.
|
||||
* Caller should call rv.release() when done.
|
||||
* Caller should call release(rv) when done with it.
|
||||
* @since 0.8.11
|
||||
*/
|
||||
public FilterKey getFilterKey(byte[] b, int offset, int len) {
|
||||
|
Reference in New Issue
Block a user