diff options
| author | Michael Koch <konqueror@gmx.de> | 2003-10-09 18:01:08 +0000 |
|---|---|---|
| committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-10-09 18:01:08 +0000 |
| commit | 137f5e8417ffa8ce2160bce1d45ce3b54ed16add (patch) | |
| tree | 5eb89b9d4b6823133af7a8e54c008a6ed38522c8 /libjava/gnu/java/nio/SelectorImpl.java | |
| parent | 4e3cb200a543c0a52b4a8ec8f1a1518bfcb08ce2 (diff) | |
| download | gcc-137f5e8417ffa8ce2160bce1d45ce3b54ed16add.zip gcc-137f5e8417ffa8ce2160bce1d45ce3b54ed16add.tar.gz gcc-137f5e8417ffa8ce2160bce1d45ce3b54ed16add.tar.bz2 | |
SelectorImpl.java (register): Use ServerSocketChannelSelectionKey for server socket channels...
2003-10-09 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/SelectorImpl.java (register):
Use ServerSocketChannelSelectionKey for server socket channels,
removed unneeded comments.
* gnu/java/nio/ServerSocketChannelImpl.java
(ServerSocketChannelImpl): Made class public final.
(impl): New member variable.
(ServerSocketChannelImpl): Initialize member variables correctly.
(initServerSocket): New method.
(getNativeFD): Likewise.
* gnu/java/nio/ServerSocketChannelSelectionKey.java,
gnu/java/nio/natServerSocketChannelImpl.cc: New files.
* Makefile.am (ordinary_java_source_files):
Added gnu/java/nio/ServerSocketChannelSelectionKey.java.
(nat_source_files): Added gnu/java/nio/natServerSocketChannelImpl.cc.
* Makefile.in: Regenrated.
From-SVN: r72277
Diffstat (limited to 'libjava/gnu/java/nio/SelectorImpl.java')
| -rw-r--r-- | libjava/gnu/java/nio/SelectorImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/gnu/java/nio/SelectorImpl.java b/libjava/gnu/java/nio/SelectorImpl.java index 08531ef..60a81f9 100644 --- a/libjava/gnu/java/nio/SelectorImpl.java +++ b/libjava/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 { |
