/[classpath]/classpath/gnu/java/nio/SocketChannelImpl.java
ViewVC logotype

Diff of /classpath/gnu/java/nio/SocketChannelImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by mkoch, Fri Sep 26 21:37:54 2003 UTC revision 1.17 by mkoch, Wed Oct 15 12:51:32 2003 UTC
# Line 63  import gnu.classpath.Configuration; Line 63  import gnu.classpath.Configuration;
63    
64  public final class SocketChannelImpl extends SocketChannel  public final class SocketChannelImpl extends SocketChannel
65  {  {
66      private PlainSocketImpl impl;
67    private NIOSocket socket;    private NIOSocket socket;
68    private boolean blocking = true;    private boolean blocking = true;
69    private boolean connected = false;    private boolean connected = false;
# Line 72  public final class SocketChannelImpl ext Line 73  public final class SocketChannelImpl ext
73      throws IOException      throws IOException
74    {    {
75      super (provider);      super (provider);
76      socket = new NIOSocket (new PlainSocketImpl(), this);      impl = new PlainSocketImpl();
77        socket = new NIOSocket (impl, this);
78    }    }
79        
80    SocketChannelImpl (SelectorProvider provider,    SocketChannelImpl (SelectorProvider provider,
# Line 80  public final class SocketChannelImpl ext Line 82  public final class SocketChannelImpl ext
82      throws IOException      throws IOException
83    {    {
84      super (provider);      super (provider);
85        this.impl = socket.getImpl();
86      this.socket = socket;      this.socket = socket;
87      this.connected = socket.isConnected();      this.connected = socket.isConnected();
88    }    }
# Line 98  public final class SocketChannelImpl ext Line 101  public final class SocketChannelImpl ext
101        }        }
102    }    }
103    
104      PlainSocketImpl getImpl()
105      {
106        return impl;
107      }
108    
109    int getNativeFD()    int getNativeFD()
110    {    {
111      return socket.getImpl().getNativeFD();      return socket.getImpl().getNativeFD();

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26