I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 8ecf423d authored by zzz's avatar zzz
Browse files

javadoc

parent 67cc3ad5
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,9 @@ import net.i2p.I2PException; ...@@ -6,6 +6,9 @@ import net.i2p.I2PException;
import java.net.ConnectException; import java.net.ConnectException;
import java.nio.channels.SelectableChannel; import java.nio.channels.SelectableChannel;
/**
* @since 0.8.11
*/
public abstract class AcceptingChannel extends SelectableChannel { public abstract class AcceptingChannel extends SelectableChannel {
abstract I2PSocket accept() throws I2PException, ConnectException; abstract I2PSocket accept() throws I2PException, ConnectException;
I2PSocketManager _socketManager; I2PSocketManager _socketManager;
......
...@@ -31,6 +31,9 @@ public interface I2PServerSocket { ...@@ -31,6 +31,9 @@ public interface I2PServerSocket {
*/ */
public I2PSocket accept() throws I2PException, ConnectException, SocketTimeoutException; public I2PSocket accept() throws I2PException, ConnectException, SocketTimeoutException;
/**
* @since 0.8.11
*/
public AcceptingChannel getChannel(); public AcceptingChannel getChannel();
/** /**
......
...@@ -12,6 +12,9 @@ import java.nio.channels.Selector; ...@@ -12,6 +12,9 @@ import java.nio.channels.Selector;
import java.nio.channels.spi.AbstractSelectionKey; import java.nio.channels.spi.AbstractSelectionKey;
import java.nio.channels.spi.SelectorProvider; import java.nio.channels.spi.SelectorProvider;
/**
* @since 0.8.11
*/
public class AcceptingChannelImpl extends AcceptingChannel { public class AcceptingChannelImpl extends AcceptingChannel {
boolean _isRegistered = false; boolean _isRegistered = false;
SelectionKey whichKey = null; SelectionKey whichKey = null;
......
...@@ -25,6 +25,9 @@ class I2PServerSocketFull implements I2PServerSocket { ...@@ -25,6 +25,9 @@ class I2PServerSocketFull implements I2PServerSocket {
return _socketManager.receiveSocket(); return _socketManager.receiveSocket();
} }
/**
* @since 0.8.11
*/
public AcceptingChannel getChannel() { public AcceptingChannel getChannel() {
return new AcceptingChannelImpl(_socketManager); return new AcceptingChannelImpl(_socketManager);
} }
......
...@@ -221,7 +221,7 @@ public class BloomSHA1 { ...@@ -221,7 +221,7 @@ public class BloomSHA1 {
/** /**
* Get the bloom filter offsets for reuse. * 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 * @since 0.8.11
*/ */
public FilterKey getFilterKey(byte[] b, int offset, int len) { public FilterKey getFilterKey(byte[] b, int offset, int len) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment