Implement toString() in class InetEndpoint.

This commit is contained in:
hns 2008-11-27 10:10:52 +00:00
parent 053237600e
commit 9b8ef5d64c

View file

@ -875,6 +875,10 @@ class InetEndpoint {
return port;
}
public String toString() {
return addr == null ? "0.0.0.0:" + port : addr + ":" + port;
}
}