/[classpath]/classpath/java/net/ServerSocket.java
ViewVC logotype

Diff of /classpath/java/net/ServerSocket.java

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

revision 1.24 by mkoch, Fri Sep 19 07:07:40 2003 UTC revision 1.25 by mkoch, Mon Oct 6 13:59:48 2003 UTC
# Line 74  public class ServerSocket Line 74  public class ServerSocket
74    private SocketImpl impl;    private SocketImpl impl;
75    
76    private boolean closed = false;    private boolean closed = false;
77    
78      /*
79       * This is only used by java.nio.
80       */
81      // FIXME: Workaround a bug in gcj.
82      //ServerSocket (PlainSocketImpl impl) throws IOException
83      ServerSocket (SocketImpl impl) throws IOException
84      {
85        this.impl = impl;
86        this.impl.create (true);
87      }
88        
89    /**    /**
90     * Constructor that simply sets the implementation.     * Constructor that simply sets the implementation.
# Line 318  public class ServerSocket Line 329  public class ServerSocket
329     */     */
330    public void close () throws IOException    public void close () throws IOException
331    {    {
332      if (impl != null)      impl.close ();
       impl.close ();  
333    
334      if (getChannel() != null)      if (getChannel() != null)
335        getChannel().close ();        getChannel().close ();

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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