diff options
| author | Michael Koch <konqueror@gmx.de> | 2003-10-15 12:51:30 +0000 |
|---|---|---|
| committer | Michael Koch <konqueror@gmx.de> | 2003-10-15 12:51:30 +0000 |
| commit | 2096ba496342aa3318a3e7d40cb8d0732ba9ad67 (patch) | |
| tree | d02892e7f72d1366955cf983bce78d70a8ca4c0f /gnu/java/nio/SelectorImpl.java | |
| parent | 10e8cffabc2540577202a4663f4737fc18cbb80f (diff) | |
| download | classpath-2096ba496342aa3318a3e7d40cb8d0732ba9ad67.tar.gz | |
2003-10-15 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/NIOSocket.java
(setChannel): Initialize impl.
* gnu/java/nio/ServerSocketChannelImpl.java
(ServerSocketChannelImpl): Made class public final.
(serverSocket): Made it a NIOServerSocket.
(getNativeFD): New method.
(implConfigureBlocking): Set socket timeout.
(accept): Rewritten.
* gnu/java/nio/SelectorImpl.java
(register): Use ServerSocketChannelSelectionKey for server socket
channels, removed comments.
* gnu/java/nio/SocketChannelImpl.java
(impl): New member variable.
(SocketChannelImpl): Initialize impl.
(getImpl): New method.
* gnu/java/nio/NIOServerSocket.java,
gnu/java/nio/ServerSocketChannelSelectionKey.java: New files.
* gnu/java/nio/Makefile.am (EXTRA_DIST):
Added NIOServerSocket.java and ServerSocketChannelSelectionKey.java.
Diffstat (limited to 'gnu/java/nio/SelectorImpl.java')
| -rw-r--r-- | gnu/java/nio/SelectorImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/java/nio/SelectorImpl.java b/gnu/java/nio/SelectorImpl.java index 08531ef44..60a81f984 100644 --- a/gnu/java/nio/SelectorImpl.java +++ b/gnu/java/nio/SelectorImpl.java @@ -253,17 +253,17 @@ public class SelectorImpl extends AbstractSelector if (ch instanceof SocketChannelImpl) { SocketChannelImpl sc = (SocketChannelImpl) ch; - result = new SocketChannelSelectionKey (ch, this); // FIXME: last argument + result = new SocketChannelSelectionKey (ch, this); } else if (ch instanceof DatagramChannelImpl) { DatagramChannelImpl dc = (DatagramChannelImpl) ch; - result = new DatagramChannelSelectionKey (ch, this); // FIXME: last argument + result = new DatagramChannelSelectionKey (ch, this); } else if (ch instanceof ServerSocketChannelImpl) { ServerSocketChannelImpl ssc = (ServerSocketChannelImpl) ch; - result = new SocketChannelSelectionKey (ch, this); // FIXME: last argument + result = new ServerSocketChannelSelectionKey (ch, this); } else { |
