summaryrefslogtreecommitdiffstats
path: root/libjava/java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-11 18:01:35 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-11 18:01:35 +0000
commite95addcda5341dfee5599f8347c30f58ae3a8be6 (patch)
treef3c9f1f5921233e31d10682889fd919d402a47e7 /libjava/java
parent88a78d982ea6dc0ca6049e836a1fb17c489dc877 (diff)
downloadppe42-gcc-e95addcda5341dfee5599f8347c30f58ae3a8be6.tar.gz
ppe42-gcc-e95addcda5341dfee5599f8347c30f58ae3a8be6.zip
2003-10-11 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/NIOSocket.java (setChannel): Initialize impl. * gnu/java/nio/ServerSocketChannelImpl.java (serverSocket): Made it a NIOServerSocket. (impl): Removed. (ServerSocketChannelImpl): Initialize only serverSocket. (initServerSocket): Removed. (getNativeFD): Rewritten. (implConfigureBlocking): Set socket timeout and removed comment. (accept): Rewritten. * gnu/java/nio/SocketChannelImpl.java (impl): New variable. (connected): Removed. (SocketChannelImpl): Initialize impl too. (getImpl): New method. (isConnected): Rewritten. (read): Rewritten, set position in buffer correctly. (write): Set position in buffer correctly. * java/net/ServerSocket.java (getImpl): New method. * gnu/java/nio/NIOServerSocket.java, gnu/java/nio/natNIOServerSocket.cc: New files. * gnu/java/nio/natServerSocketChannelImpl.cc: Removed. * Makefile.am (ordinary_java_source_files): Added gnu/java/nio/NIOServerSocket.java. (nat_source_files): Removed gnu/java/nio/natServerSocketChannelImpl.cc and added gnu/java/nio/natNIOServerSocket.cc. * Makefile.in: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72345 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/net/ServerSocket.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/libjava/java/net/ServerSocket.java b/libjava/java/net/ServerSocket.java
index 6b5544b3a27..f4d1ecc45de 100644
--- a/libjava/java/net/ServerSocket.java
+++ b/libjava/java/net/ServerSocket.java
@@ -76,7 +76,7 @@ public class ServerSocket
private boolean closed = false;
/*
- * This is only used by java.nio.
+ * This constructor is only used by java.nio.
*/
// FIXME: Workaround a bug in gcj.
//ServerSocket (PlainSocketImpl impl) throws IOException
@@ -85,6 +85,16 @@ public class ServerSocket
this.impl = impl;
this.impl.create (true);
}
+
+ /*
+ * This method is only used by java.nio.
+ */
+ // FIXME: Workaround a bug in gcj.
+ //PlainSocketImpl getImpl()
+ SocketImpl getImpl()
+ {
+ return impl;
+ }
/**
* Constructor that simply sets the implementation.
OpenPOWER on IntegriCloud