From d56222ef98125c92d99a720b6a3c093d4947a850 Mon Sep 17 00:00:00 2001 From: Jeroen Frijters Date: Tue, 28 Jun 2005 11:32:39 +0000 Subject: 2005-06-28 Jeroen Frijters * 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. --- gnu/java/nio/SocketChannelSelectionKey.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/java/nio/SocketChannelSelectionKey.java') 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(); } } -- cgit v1.2.1