/[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.46 by bryce, Tue Jul 20 17:47:59 2004 UTC revision 1.46.2.1 by gnu_andrew, Fri Jan 14 10:24:16 2005 UTC
# Line 479  public class Socket Line 479  public class Socket
479    
480    /**    /**
481     * Returns the local address to which this socket is bound.  If this socket     * Returns the local address to which this socket is bound.  If this socket
482     * is not connected, then <code>null</code> is returned.     * is not connected, then a wildcard address, for which
483       * @see isAnyLocalAddress() is <code>true</code>, is returned.
484     *     *
485     * @return The local address     * @return The local address
486     *     *
# Line 488  public class Socket Line 489  public class Socket
489    public InetAddress getLocalAddress()    public InetAddress getLocalAddress()
490    {    {
491      if (! isBound())      if (! isBound())
492        return null;        return InetAddress.ANY_IF;
493    
494      InetAddress addr = null;      InetAddress addr = null;
495    

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.46.2.1

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