// that default. JDK 1.2 doc infers not to do a bind.
}
- // This has to be accessible from java.net.ServerSocket.
- SocketImpl getImpl() throws SocketException
+ private SocketImpl getImpl() throws SocketException
{
try
{
/**
* 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;