summaryrefslogtreecommitdiffstats
path: root/libjava/java/net/ServerSocket.java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-18 11:32:46 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-18 11:32:46 +0000
commit09419bbb6a69689cbdf25db97633014a45d80349 (patch)
tree12925196dcfe56b1532ce045b0b7e55c97f93cf8 /libjava/java/net/ServerSocket.java
parent45a9219c59beb9f6245dc3357815ba554861154b (diff)
downloadppe42-gcc-09419bbb6a69689cbdf25db97633014a45d80349.tar.gz
ppe42-gcc-09419bbb6a69689cbdf25db97633014a45d80349.zip
2003-09-18 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java (ch): Removed. (receive): Use getChannel() instead of ch. (send): Likewise. (getChannel): Return null. * java/net/ServerSocket.java (ch): Removed. (setChannel): Removed. (implAccept): Use getChannel() instead of ch. (close): Likewise. (getChannel): Return null. * java/net/Socket.java (ch): Removed. (connect): Use getChannel() instead of ch. (setChannel): Removed. (getChannel): Return null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71516 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/net/ServerSocket.java')
-rw-r--r--libjava/java/net/ServerSocket.java23
1 files changed, 5 insertions, 18 deletions
diff --git a/libjava/java/net/ServerSocket.java b/libjava/java/net/ServerSocket.java
index 4e6d7092dec..44281783dc8 100644
--- a/libjava/java/net/ServerSocket.java
+++ b/libjava/java/net/ServerSocket.java
@@ -73,12 +73,6 @@ public class ServerSocket
*/
private SocketImpl impl;
- /**
- * ServerSocketChannel of this ServerSocket. This channel only exists
- * when the socket is created by ServerSocketChannel.open().
- */
- private ServerSocketChannel ch;
-
private boolean closed = false;
/**
@@ -160,14 +154,6 @@ public class ServerSocket
bind (new InetSocketAddress (bindAddr, port), backlog);
}
- /*
- * This method may only be used by java.nio.channels.ServerSocketChannel.open.
- */
- void setChannel (ServerSocketChannel ch)
- {
- this.ch = ch;
- }
-
/**
* Binds the server socket to a specified socket address
*
@@ -318,7 +304,8 @@ public class ServerSocket
protected final void implAccept (Socket s)
throws IOException
{
- if (ch != null && !ch.isBlocking())
+ if (getChannel() != null
+ && !getChannel().isBlocking())
throw new IllegalBlockingModeException();
impl.accept(s.impl);
@@ -334,8 +321,8 @@ public class ServerSocket
if (impl != null)
impl.close ();
- if (ch != null)
- ch.close ();
+ if (getChannel() != null)
+ getChannel().close ();
closed = true;
}
@@ -351,7 +338,7 @@ public class ServerSocket
*/
public ServerSocketChannel getChannel()
{
- return ch;
+ return null;
}
/**
OpenPOWER on IntegriCloud