mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-16 00:16:04 +00:00
2004-09-21 Michael Koch <konqueror@gmx.de>
* java/net/Socket.java (getLocalAddress): Return InetAddress.ANY_IF if not bound yet. From-SVN: r87817
This commit is contained in:
committed by
Andreas Tobler
parent
448a698b4e
commit
938806922d
@@ -479,7 +479,8 @@ public class Socket
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
@@ -488,7 +489,7 @@ public class Socket
|
||||
public InetAddress getLocalAddress()
|
||||
{
|
||||
if (! isBound())
|
||||
return null;
|
||||
return InetAddress.ANY_IF;
|
||||
|
||||
InetAddress addr = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user