summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/nio/NIOSocket.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-10-11 18:01:35 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-10-11 18:01:35 +0000
commit51914674f406579519e45f82ce7567910ed48032 (patch)
treef3c9f1f5921233e31d10682889fd919d402a47e7 /libjava/gnu/java/nio/NIOSocket.java
parent5a2a057de88dc9da544788f7e5a02567dd28e39d (diff)
NIOSocket.java (setChannel): Initialize impl.
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. From-SVN: r72345
Diffstat (limited to 'libjava/gnu/java/nio/NIOSocket.java')
-rw-r--r--libjava/gnu/java/nio/NIOSocket.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/libjava/gnu/java/nio/NIOSocket.java b/libjava/gnu/java/nio/NIOSocket.java
index bbdddccbdb0..ba9807396be 100644
--- a/libjava/gnu/java/nio/NIOSocket.java
+++ b/libjava/gnu/java/nio/NIOSocket.java
@@ -66,6 +66,7 @@ public final class NIOSocket extends Socket
final void setChannel (SocketChannelImpl channel)
{
+ this.impl = channel.getImpl();
this.channel = channel;
}