* java/net/Socket.java
(getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
From-SVN: r87817
+2004-09-21 Michael Koch <konqueror@gmx.de>
+
+ * java/net/Socket.java
+ (getLocalAddress): Return InetAddress.ANY_IF if not bound yet.
+
2004-09-21 Casey Marshall <csm@gnu.org>
* javax/crypto/MacSpi.java (clone): Provide meaningful
/**
* Returns the local address to which this socket is bound. If this socket
- * is not connected, then <code>null</code> is returned.
+ * is not connected, then a wildcard address, for which
+ * @see isAnyLocalAddress() is <code>true</code>, is returned.
*
* @return The local address
*
public InetAddress getLocalAddress()
{
if (! isBound())
- return null;
+ return InetAddress.ANY_IF;
InetAddress addr = null;