diff options
| author | Michael Koch <konqueror@gmx.de> | 2003-03-14 10:49:01 +0000 |
|---|---|---|
| committer | Michael Koch <konqueror@gmx.de> | 2003-03-14 10:49:01 +0000 |
| commit | 3e1776856e953a320a4b38b9c7c51adb81c23c49 (patch) | |
| tree | 3e9255e0cb8ba8c39455f9d5168f8460c3ecc31d /gnu/java/nio/SelectionKeyImpl.java | |
| parent | bb0b99bd9e40135a6f70ec646aa89fcb95ec1921 (diff) | |
| download | classpath-3e1776856e953a320a4b38b9c7c51adb81c23c49.tar.gz | |
2003-03-14 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/SelectionKeyImpl.java:
Merged with libgcj.
* gnu/java/nio/SelectorProviderImpl.java:
Merged with libgcj.
* gnu/java/nio/ServerSocketChannelImpl.java:
Partly merged with libgcj.
* gnu/java/nio/SocketChannelImpl.java:
Merged with libgcj.
Diffstat (limited to 'gnu/java/nio/SelectionKeyImpl.java')
| -rw-r--r-- | gnu/java/nio/SelectionKeyImpl.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gnu/java/nio/SelectionKeyImpl.java b/gnu/java/nio/SelectionKeyImpl.java index 8ef6f7f27..5763d6880 100644 --- a/gnu/java/nio/SelectionKeyImpl.java +++ b/gnu/java/nio/SelectionKeyImpl.java @@ -44,7 +44,9 @@ import java.nio.channels.spi.AbstractSelectionKey; public class SelectionKeyImpl extends AbstractSelectionKey { - int fd, ops; + int fd; + int readyOps; + int interestOps; SelectorImpl impl; SelectableChannel ch; @@ -62,17 +64,23 @@ public class SelectionKeyImpl extends AbstractSelectionKey public int readyOps () { - return 0; + return readyOps; + } + + public SelectionKey readyOps (int ops) + { + readyOps = ops; + return this; } public int interestOps () { - return ops; + return interestOps; } public SelectionKey interestOps (int ops) { - this.ops = ops; + interestOps = ops; return this; } |
