diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-14 11:53:02 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-14 11:53:02 +0000 |
commit | d493b8a1d36cc7a1dd0a3541c0b2b5779efd4404 (patch) | |
tree | b079e077f62874b5e1b42c98455301dc0d73a902 /libjava/gnu/java/nio/SocketChannelImpl.java | |
parent | 4faba3def3f57302ce1c0b192c2c5790a0143c60 (diff) | |
download | ppe42-gcc-d493b8a1d36cc7a1dd0a3541c0b2b5779efd4404.tar.gz ppe42-gcc-d493b8a1d36cc7a1dd0a3541c0b2b5779efd4404.zip |
2003-06-14 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileChannelImpl.java
(map_address): Removed incorrect comment.
* gnu/java/nio/SelectorImpl.java
(register): Remove code duplication and code for file channel handling.
* gnu/java/nio/ServerSocketChannelImpl.java
(serverSocket): Renamed from sock_object.
(ServerSocketChannel): Initialize serverSocket.
(socket): Return serverSocket.
* gnu/java/nio/SocketChannelImpl.java
(socket): Renamed from sock_object.
(isConnectionPenging): Simplified.
(socket): Return socket.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67940 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/nio/SocketChannelImpl.java')
-rw-r--r-- | libjava/gnu/java/nio/SocketChannelImpl.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libjava/gnu/java/nio/SocketChannelImpl.java b/libjava/gnu/java/nio/SocketChannelImpl.java index 48cf585cb05..820d62f3b6c 100644 --- a/libjava/gnu/java/nio/SocketChannelImpl.java +++ b/libjava/gnu/java/nio/SocketChannelImpl.java @@ -35,6 +35,7 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package gnu.java.nio; import java.io.IOException; @@ -50,7 +51,7 @@ import gnu.classpath.Configuration; public class SocketChannelImpl extends SocketChannel { - Socket sock_object; + Socket socket; int fd; int local_port; boolean blocking = true; @@ -141,20 +142,17 @@ public class SocketChannelImpl extends SocketChannel public boolean isConnectionPending () { - if (blocking) - return true; - - return false; + return blocking ? true : false; } public Socket socket () { - if (sock_object != null) + if (socket != null) { - //sock_object.ch = this; + //socket.ch = this; } - return sock_object; + return socket; } public int read (ByteBuffer dst) throws IOException |