 
 (def N-RETRIES 20)
 
+(declare reset)
+
 (defn- connect-internal
   []
   (log/debug "Connecting to internal SuperCollider server")

  [& [host port]]
   (if (and host port)
     (.run (Thread. #(connect-external host port)))
     (connect-internal)))

(defonce running?* (atom false))


        #(do
           (dosync (ref-set status* :connected))
           (notify true) ; turn on notifications now that we can communicate
           (reset)
           (event :connected)
           :done))

