          address "localhost"}} :- {:ports {s/Keyword s/Int}
                                    s/Any s/Any}]
   (log/debug "Trying to set up a URL based on" (util/pretty config))
-  (comment (comm/strict-map->URI {:protocol protocol
-                                  :address address
-                                  :port port}))
   {:protocol protocol
    :address address
    :port port})

   (assoc this :context nil)))

(defmulti socket-type
  #(class %))

;;; TODO: These next 3 records needs to collapse into one.


(s/defn new-control-url :- comm/URI
  [_]
  {:protocol "inproc"
   :address "local"
   :port nil})
