diff options
Diffstat (limited to 'libjava/gnu/java/nio/ServerSocketChannelImpl.java')
-rw-r--r-- | libjava/gnu/java/nio/ServerSocketChannelImpl.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libjava/gnu/java/nio/ServerSocketChannelImpl.java b/libjava/gnu/java/nio/ServerSocketChannelImpl.java index 4a51f2a4b61..039b50308d6 100644 --- a/libjava/gnu/java/nio/ServerSocketChannelImpl.java +++ b/libjava/gnu/java/nio/ServerSocketChannelImpl.java @@ -54,10 +54,8 @@ class ServerSocketChannelImpl extends ServerSocketChannel boolean connected = false; // InetSocketAddress sa; - private static native int SocketAccept (ServerSocketChannelImpl server, - SocketChannelImpl s); - protected ServerSocketChannelImpl (SelectorProvider provider) + throws IOException { super (provider); fd = SocketChannelImpl.SocketCreate (); @@ -86,14 +84,14 @@ class ServerSocketChannelImpl extends ServerSocketChannel } } - protected void implCloseSelectableChannel () + protected void implCloseSelectableChannel () throws IOException { connected = false; SocketChannelImpl.SocketClose (fd); fd = SocketChannelImpl.SocketCreate (); } - protected void implConfigureBlocking (boolean block) + protected void implConfigureBlocking (boolean block) throws IOException { blocking = block; } @@ -102,7 +100,7 @@ class ServerSocketChannelImpl extends ServerSocketChannel { SocketChannelImpl result = new SocketChannelImpl (provider ()); result.sa = new InetSocketAddress (0); - int res = SocketAccept (this,result); + //int res = SocketAccept (this,result); return result; } |