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 |
* |
* |
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 |
|
|