summaryrefslogtreecommitdiff
path: root/gnu/java/nio/ServerSocketChannelSelectionKey.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/ServerSocketChannelSelectionKey.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/ServerSocketChannelSelectionKey.java')
-rw-r--r--gnu/java/nio/ServerSocketChannelSelectionKey.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/java/nio/ServerSocketChannelSelectionKey.java b/gnu/java/nio/ServerSocketChannelSelectionKey.java
index 55847e49a..db2733efe 100644
--- a/gnu/java/nio/ServerSocketChannelSelectionKey.java
+++ b/gnu/java/nio/ServerSocketChannelSelectionKey.java
@@ -51,6 +51,8 @@ public final class ServerSocketChannelSelectionKey
public int getNativeFD()
{
- return ((ServerSocketChannelImpl) ch).getNativeFD();
+ NIOServerSocket socket =
+ (NIOServerSocket) ((ServerSocketChannelImpl) ch).socket();
+ return socket.getPlainSocketImpl().getNativeFD();
}
}