question: private String constructTcpInfo ( InetAddress host ) { String domain = host . getCanonicalHostName ( ) ; String address = host . getHostAddress ( ) ; if ( domain . equals ( address ) ) return "[" + address + "]" ; else return domain + " [" + address + "]" ; }
target:  Returns a formatted TCP-info element, depending on the success of the IP address name resolution either with domain name or only the address literal.