mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
SocketImpl.java (toString): Display the remote address of an unconnected server socket as "0.0.0.0/0.0.0.0".
2003-08-01 Stephen Crawley <crawley@dstc.edu.au> * java/net/SocketImpl.java (toString): Display the remote address of an unconnected server socket as "0.0.0.0/0.0.0.0". From-SVN: r70069
This commit is contained in:
committed by
Michael Koch
parent
1ce4e666b2
commit
6e42faef6d
@@ -276,7 +276,8 @@ public abstract class SocketImpl implements SocketOptions
|
||||
*/
|
||||
public String toString()
|
||||
{
|
||||
return "[addr=" + address
|
||||
return "[addr=" + ((address == null) ? "0.0.0.0/0.0.0.0" :
|
||||
address.toString())
|
||||
+ ",port=" + port
|
||||
+ ",localport=" + localport + "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user