remote_str=remote != null ? Util.shortName(local.getHostName()) : "<null>";
remote_str=remote != null ? Util.shortName(remote.getHostName()) : "<null>";
        public String toString() {            StringBuffer ret=new StringBuffer();            InetAddress local=null, remote=null;            String local_str, remote_str;            if(sock == null)                ret.append("<null socket>");            else {                //since the sock variable gets set to null we want to make                //make sure we make it through here without a nullpointer exception                Socket tmp_sock=sock;                local=tmp_sock.getLocalAddress();                remote=tmp_sock.getInetAddress();                local_str=local != null ? Util.shortName(local.getHostName()) : "<null>";                remote_str=remote != null ? Util.shortName(local.getHostName()) : "<null>";                ret.append('<' + local_str + ':' + tmp_sock.getLocalPort() +                           " --> " + remote_str + ':' + tmp_sock.getPort() + "> (" +                           ((System.currentTimeMillis() - last_access) / 1000) + " secs old)");                tmp_sock=null;            }            return ret.toString();        }