Creates a server socket on port. Upon accept, a new thread is created which calls:
(fun input-stream output-stream)
Optional arguments support specifying a listen backlog and binding to a specific endpoint.
; clojure/contrib/server_socket.clj:53 (defn create-server ([port fun backlog #^InetAddress bind-addr] (create-server-aux fun (ServerSocket. port backlog bind-addr))) ([port fun backlog] (create-server-aux fun (ServerSocket. port backlog))) ([port fun] (create-server-aux fun (ServerSocket. port))))
Copyright (c) Rich Hickey. All rights reserved.
The use and distribution terms for this software are covered by the Eclipse Public License 1.0, which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.