1.2.0 permalink Arrow_down_16x16

setup-server

swank.core.server

  • (setup-server port announce-fn connection-serve opts)
The port it started on will be called as an argument to (announce-fn
port). A connection will then be created and (connection-serve conn)
will then be called.

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:80 top

(defn setup-server
  "The port it started on will be called as an argument to (announce-fn
   port). A connection will then be created and (connection-serve conn)
   will then be called."
  [port announce-fn connection-serve opts]
  (start-swank-socket-server!
   (make-server-socket {:port    port
                        :host    (opts :host)
                        :backlog (opts :backlog 0)})
   #(socket-serve connection-serve % opts)
   {:announce announce-fn}))
Vars in swank.core.server/setup-server: defn
Used in 0 other vars

Comments top

No comments for setup-server. Log in to add a comment.