summaryrefslogtreecommitdiff
path: root/gnu/java/nio/SocketChannelSelectionKey.java
diff options
context:
space:
mode:
authorJeroen Frijters <jeroen@sumatra.nl>2005-06-28 11:32:39 +0000
committerJeroen Frijters <jeroen@sumatra.nl>2005-06-28 11:32:39 +0000
commitd56222ef98125c92d99a720b6a3c093d4947a850 (patch)
treedd3760beee540ba62d0cbb8f276070b11f979e5b /gnu/java/nio/SocketChannelSelectionKey.java
parent98b3aafc0a307ca423c6da83ec0b01310926f7a5 (diff)
downloadclasspath-d56222ef98125c92d99a720b6a3c093d4947a850.tar.gz
2005-06-28 Jeroen Frijters <jeroen@frijters.net>
* gnu/java/nio/DatagramChannelImpl.java (getNativeFD): Removed. * gnu/java/nio/DatagramChannelSelectionKey.java (getNativeFD): Modified to extract the native fd via the PlainDatagramSocketImpl. * gnu/java/nio/ServerSocketChannelImpl.java (getNativeFD): Removed. * gnu/java/nio/ServerSocketChannelSelectionKey.java (getNativeFD): Modified to extract the native fd via the PlainSocketImpl. * gnu/java/nio/SocketChannelImpl.java (getNativeFD): Removed. * gnu/java/nio/SocketChannelSelectionKey.java (getNativeFD): Modified to extract the native fd via the PlainSocketImpl.
Diffstat (limited to 'gnu/java/nio/SocketChannelSelectionKey.java')
-rw-r--r--gnu/java/nio/SocketChannelSelectionKey.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/java/nio/SocketChannelSelectionKey.java b/gnu/java/nio/SocketChannelSelectionKey.java
index dcbc7bd37..a6a635dd4 100644
--- a/gnu/java/nio/SocketChannelSelectionKey.java
+++ b/gnu/java/nio/SocketChannelSelectionKey.java
@@ -51,6 +51,8 @@ public final class SocketChannelSelectionKey
public int getNativeFD()
{
- return ((SocketChannelImpl) ch).getNativeFD();
+ NIOSocket socket =
+ (NIOSocket) ((SocketChannelImpl) ch).socket();
+ return socket.getPlainSocketImpl().getNativeFD();
}
}