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

Diff of /classpath/java/net/Socket.java

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

revision 1.36 by mkoch, Tue Dec 2 10:33:57 2003 UTC revision 1.37 by mkoch, Tue Dec 2 10:41:05 2003 UTC
# Line 84  public class Socket Line 84  public class Socket
84     */     */
85    private boolean implCreated;    private boolean implCreated;
86    
87    private boolean inputShutdown = false;    /**
88    private boolean outputShutdown = false;     * True if the socket is bound.
89       */
90      private boolean bound;
91    
92      /**
93       * True if input is shutdown.
94       */
95      private boolean inputShutdown;
96    
97      /**
98       * True if output is shutdown.
99       */
100      private boolean outputShutdown;
101    
102    /**    /**
103     * Initializes a new instance of <code>Socket</code> object without     * Initializes a new instance of <code>Socket</code> object without
# Line 346  public class Socket Line 357  public class Socket
357      try      try
358        {        {
359          getImpl().bind (tmp.getAddress(), tmp.getPort());          getImpl().bind (tmp.getAddress(), tmp.getPort());
360            bound = true;
361        }        }
362      catch (IOException exception)      catch (IOException exception)
363        {        {
# Line 983  public class Socket Line 995  public class Socket
995        getChannel().close();        getChannel().close();
996            
997      impl = null;      impl = null;
998        bound = false;
999    }    }
1000    
1001    /**    /**
# Line 1183  public class Socket Line 1196  public class Socket
1196     */     */
1197    public boolean isBound ()    public boolean isBound ()
1198    {    {
1199      return getLocalAddress () != null;      return bound;
1200    }    }
1201    
1202    /**    /**

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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