private String constructTcpInfo(InetAddress host){
  String domain=host.getCanonicalHostName();
  String address=host.getHostAddress();
  if (domain.equals(address))   return "[" + address + "]";
 else   return domain + " [" + address+ "]";
}

private String constructTcpInfo ( InetAddress host ) { String domain = host . getCanonicalHostName ( ) ; String address = host . getHostAddress ( ) ; if ( domain . equals ( address ) ) return "[" + address + "]" ; else return domain + " [" + address + "]" ; }
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 .
