diff options
| author | Michael Koch <konqueror@gmx.de> | 2003-06-10 19:39:08 +0000 |
|---|---|---|
| committer | Michael Koch <konqueror@gmx.de> | 2003-06-10 19:39:08 +0000 |
| commit | d996ceebdee3762e4a6ae2c5f7b29039aadefa14 (patch) | |
| tree | 0fe026f4d3e21e7634653d4434fe1ccb34499891 /gnu/java/nio/ServerSocketChannelImpl.java | |
| parent | 12083571f8f5b9cf9b071b06b03ca34f5f1331a4 (diff) | |
| download | classpath-d996ceebdee3762e4a6ae2c5f7b29039aadefa14.tar.gz | |
2003-06-10 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ServerSocketChannelImpl.java,
gnu/java/nio/SocketChannelImpl.java:
Mainly merged with libgcj.
Diffstat (limited to 'gnu/java/nio/ServerSocketChannelImpl.java')
| -rw-r--r-- | gnu/java/nio/ServerSocketChannelImpl.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gnu/java/nio/ServerSocketChannelImpl.java b/gnu/java/nio/ServerSocketChannelImpl.java index 427b4b15b..3b5dc88af 100644 --- a/gnu/java/nio/ServerSocketChannelImpl.java +++ b/gnu/java/nio/ServerSocketChannelImpl.java @@ -54,9 +54,6 @@ class ServerSocketChannelImpl extends ServerSocketChannel boolean connected = false; InetSocketAddress sa; -// private static native int NioSocketAccept (ServerSocketChannelImpl server, -// SocketChannelImpl s); - private static int NioSocketAccept (ServerSocketChannelImpl server, SocketChannelImpl s) { @@ -82,15 +79,15 @@ class ServerSocketChannelImpl extends ServerSocketChannel public void finalizer() { if (connected) - { + { try { - close(); + close (); } catch (Exception e) { } - } + } } protected void implCloseSelectableChannel () throws IOException @@ -100,12 +97,12 @@ class ServerSocketChannelImpl extends ServerSocketChannel fd = SocketChannelImpl.SocketCreate (); } - protected void implConfigureBlocking (boolean block) throws IOException + protected void implConfigureBlocking (boolean blocking) throws IOException { - blocking = block; + this.blocking = blocking; } - public SocketChannel accept () + public SocketChannel accept () throws IOException { SocketChannelImpl result = new SocketChannelImpl (provider ()); result.sa = new InetSocketAddress (0); |
