summaryrefslogtreecommitdiff
path: root/gnu/java/nio/SelectionKeyImpl.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-09-26 21:37:54 +0000
committerMichael Koch <konqueror@gmx.de>2003-09-26 21:37:54 +0000
commit75ff281f4814476869c21f96f5b6d33dfeca23f6 (patch)
tree794f77c2221c6ed541b3aec8f87319ccad698775 /gnu/java/nio/SelectionKeyImpl.java
parent80674d559b4eb294150641aa0d3b21767da55a0a (diff)
downloadclasspath-75ff281f4814476869c21f96f5b6d33dfeca23f6.tar.gz
2003-09-26 Michael Koch <konqueror@gmx.de>
* gnu/java/net/PlainDatagramSocketImpl.java, gnu/java/net/PlainSocketImpl.java: (getNativeFD): New method. * gnu/java/nio/DatagramChannelImpl.java, gnu/java/nio/DatagramChannelSelectionKey.java, gnu/java/nio/SelectionKeyImpl.java, gnu/java/nio/SelectorImpl.java, gnu/java/nio/SocketChannelImpl.java: Many fixes, I cant write them all down here again. Files are merged from libgcj. * gnu/java/nio/DatagramChannelSelectionKey.java, gnu/java/nio/SocketChannelSelectionKey.java: New files. * gnu/java/nio/Makefile.am (EXTRA_DIST): Added DatagramChannelSeclectionKey.java and SocketChannelSelectionKey.java.
Diffstat (limited to 'gnu/java/nio/SelectionKeyImpl.java')
-rw-r--r--gnu/java/nio/SelectionKeyImpl.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/java/nio/SelectionKeyImpl.java b/gnu/java/nio/SelectionKeyImpl.java
index df4faa3a9..0d3636037 100644
--- a/gnu/java/nio/SelectionKeyImpl.java
+++ b/gnu/java/nio/SelectionKeyImpl.java
@@ -43,19 +43,17 @@ import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.spi.AbstractSelectionKey;
-public class SelectionKeyImpl extends AbstractSelectionKey
+public abstract class SelectionKeyImpl extends AbstractSelectionKey
{
- int fd;
private int readyOps;
private int interestOps;
private SelectorImpl impl;
- private SelectableChannel ch;
+ SelectableChannel ch;
- public SelectionKeyImpl (SelectableChannel ch, SelectorImpl impl, int fd)
+ public SelectionKeyImpl (SelectableChannel ch, SelectorImpl impl)
{
this.ch = ch;
this.impl = impl;
- this.fd = fd;
}
public SelectableChannel channel ()
@@ -101,4 +99,6 @@ public class SelectionKeyImpl extends AbstractSelectionKey
{
return impl;
}
+
+ public abstract int getNativeFD();
}