diff options
| author | Michael Koch <konqueror@gmx.de> | 2004-01-08 08:40:01 +0000 |
|---|---|---|
| committer | Michael Koch <konqueror@gmx.de> | 2004-01-08 08:40:01 +0000 |
| commit | d5cc979b2a38006ec787e404cb6c9f22404c6af5 (patch) | |
| tree | ba558be88f0cd0d8b3c9a5fefb75907ddcff716b /gnu/java/nio/ServerSocketChannelImpl.java | |
| parent | 7d9506b64d5e057e15bc289458c6cb721b13ae7f (diff) | |
| download | classpath-d5cc979b2a38006ec787e404cb6c9f22404c6af5.tar.gz | |
2004-01-08 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/DatagramChannelImpl.java
(blocking): Removed.
(DatagramChannelImpl): Call configureBlocking().
(implConfigureBlocking): Don't initialize blocking.
* gnu/java/nio/PipeImpl.java
(SourceChannelImpl): New inner class.
(SinkChannelImpl): New inner class.
(sink): New member variable.
(source): New member variable.
(PipeImpl): Add SelectorProvider argument, implemented.
(nativeInit): New method.
(sink): Return sink channel.
(source): Return source channel.
* gnu/java/nio/ServerSocketChannelImpl.java
(serverSocket): Made private.
(connected): Made private, don't re-initialize with default value.
(blocking): Removed.
(ServerSocketChannelImpl): Call configureBlocking().
(implConfigureBlocking): Don't initialize blocking.
* gnu/java/nio/SocketChannelImpl.java
(blocking): Removed.
(connectionPending): Don't re-initialize with default value.
(SocketChannelImpl): Call configureBlocking().
(implConfigureBlocking): Dont initialize blocking.
(connect): Use isBlocking().
* java/nio/channels/spi/AbstractSelectableChannel.java
(configureBlocking): Use blockingLock() instead of LOCK.
Set blocking after successfully called implConfigureBlocking().
(register): Use blockingLock() instead of LOCK.
Diffstat (limited to 'gnu/java/nio/ServerSocketChannelImpl.java')
| -rw-r--r-- | gnu/java/nio/ServerSocketChannelImpl.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/java/nio/ServerSocketChannelImpl.java b/gnu/java/nio/ServerSocketChannelImpl.java index 89bbdec87..fd975d20a 100644 --- a/gnu/java/nio/ServerSocketChannelImpl.java +++ b/gnu/java/nio/ServerSocketChannelImpl.java @@ -54,15 +54,15 @@ import java.nio.channels.spi.SelectorProvider; public final class ServerSocketChannelImpl extends ServerSocketChannel { - NIOServerSocket serverSocket; - boolean blocking = true; - boolean connected = false; + private NIOServerSocket serverSocket; + private boolean connected; protected ServerSocketChannelImpl (SelectorProvider provider) throws IOException { super (provider); serverSocket = new NIOServerSocket (this); + configureBlocking(true); } public int getNativeFD() @@ -93,7 +93,6 @@ public final class ServerSocketChannelImpl extends ServerSocketChannel protected void implConfigureBlocking (boolean blocking) throws IOException { serverSocket.setSoTimeout (blocking ? 0 : NIOConstants.DEFAULT_TIMEOUT); - this.blocking = blocking; } public SocketChannel accept () throws IOException |
