* gnu/java/nio/DatagramChannelImpl.java
(blocking): Initialize with true by default.
* gnu/java/nio/ServerSocketChannelImpl.java
(serverSocket): Made private.
(blocking): Likewise.
(connected): Likewise.
* gnu/java/nio/SocketChannelImpl.java
(connectionPending): Made private.
* gnu/java/nio/FileLockImpl.java
(static): Load native library (needed for classpath).
* gnu/java/nio/SelectorImpl.java
(static): Load native library (needed for classpath).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74181
138bc75d-0d04-0410-961f-
82ee72b054a4
2003-12-02 Michael Koch <konqueror@gmx.de>
+ * gnu/java/nio/DatagramChannelImpl.java
+ (blocking): Initialize with true by default.
+ * gnu/java/nio/ServerSocketChannelImpl.java
+ (serverSocket): Made private.
+ (blocking): Likewise.
+ (connected): Likewise.
+ * gnu/java/nio/SocketChannelImpl.java
+ (connectionPending): Made private.
+ * gnu/java/nio/FileLockImpl.java
+ (static): Load native library (needed for classpath).
+ * gnu/java/nio/SelectorImpl.java
+ (static): Load native library (needed for classpath).
+
+2003-12-02 Michael Koch <konqueror@gmx.de>
+
* gnu/java/net/protocol/file/Connection.java
(getLastModified): Implement for file connections.
(getContentLength): Likewise.
public final class DatagramChannelImpl extends DatagramChannel
{
private NIODatagramSocket socket;
- private boolean blocking = false;
+ private boolean blocking = true;
protected DatagramChannelImpl (SelectorProvider provider)
throws IOException
import java.io.IOException;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
+import gnu.classpath.Configuration;
/**
* @author Michael Koch
*/
public class FileLockImpl extends FileLock
{
+ static
+ {
+ // load the shared library needed for native methods.
+ if (Configuration.INIT_LOAD_LIBRARY)
+ {
+ System.loadLibrary ("javanio");
+ }
+ }
+
private FileDescriptor fd;
private boolean released;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
+import gnu.classpath.Configuration;
public class SelectorImpl extends AbstractSelector
{
+ static
+ {
+ // load the shared library needed for native methods.
+ if (Configuration.INIT_LOAD_LIBRARY)
+ {
+ System.loadLibrary ("javanio");
+ }
+ }
+
private Set keys;
private Set selected;
public final class ServerSocketChannelImpl extends ServerSocketChannel
{
- NIOServerSocket serverSocket;
- boolean blocking = true;
- boolean connected = false;
+ private NIOServerSocket serverSocket;
+ private boolean blocking = true;
+ private boolean connected;
protected ServerSocketChannelImpl (SelectorProvider provider)
throws IOException
private PlainSocketImpl impl;
private NIOSocket socket;
private boolean blocking = true;
- private boolean connectionPending = false;
+ private boolean connectionPending;
SocketChannelImpl (SelectorProvider provider)
throws IOException