start-swank-socket-server!

swank.core.server

  • (start-swank-socket-server! server connection-serve)
  • (start-swank-socket-server! server connection-serve options)
Starts and returns the socket server as a swank host. Takes an
optional set of options as a map:

:announce - an fn that will be called and provided with the
listening port of the newly established server. Default: none.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/core/server.clj:67 top

(defn start-swank-socket-server!
  "Starts and returns the socket server as a swank host. Takes an
   optional set of options as a map:

    :announce - an fn that will be called and provided with the
    listening port of the newly established server. Default: none."
  ([server connection-serve] (start-swank-socket-server! connection-serve {}))
  ([server connection-serve options]
     (start-server-socket! server connection-serve)
     (when-let [announce (options :announce)]
       (announce (.getLocalPort server)))
     server))
Vars in swank.core.server/start-swank-socket-server!: defn when-let
Used in 0 other vars

Comments top

No comments for start-swank-socket-server!. Log in to add a comment.