conns.clear();
tmp.clear();
    public void stop() {        Iterator it=null;        Connection conn;        ServerSocket tmp;        // 1. close the server socket (this also stops the acceptor thread)        if(srv_sock != null) {            try {                tmp=srv_sock;                srv_sock=null;                tmp.close();            }            catch(Exception e) {            }        }        // 2. then close the connections        synchronized(conns) {            it=conns.values().iterator();            while(it.hasNext()) {                conn=(Connection)it.next();                conn.destroy();            }            conns.clear();        }        local_addr=null;    }