Socket server support
Socket server support
(repl)
REPL with predefined hooks for attachable socket server.
REPL with predefined hooks for attachable socket server.
(repl-init)
Initialize repl in user namespace and make standard repl requires.
Initialize repl in user namespace and make standard repl requires.
(repl-read request-prompt request-exit)
Enhanced :read hook for repl supporting :repl/quit.
Enhanced :read hook for repl supporting :repl/quit.
(start-server opts)
Start a socket server given the specified opts: :address Host or address, string, defaults to loopback address :port Port, integer, required :name Name, required :accept Namespaced symbol of the accept function to invoke, required :args Vector of args to pass to accept function :bind-err Bind err to socket out stream?, defaults to true :server-daemon Is server thread a daemon?, defaults to true :client-daemon Are client threads daemons?, defaults to true Returns server socket.
Start a socket server given the specified opts: :address Host or address, string, defaults to loopback address :port Port, integer, required :name Name, required :accept Namespaced symbol of the accept function to invoke, required :args Vector of args to pass to accept function :bind-err Bind *err* to socket out stream?, defaults to true :server-daemon Is server thread a daemon?, defaults to true :client-daemon Are client threads daemons?, defaults to true Returns server socket.
(start-servers system-props)
Start all servers specified in the system properties.
Start all servers specified in the system properties.
(stop-server)
(stop-server name)
Stop server with name or use the server-name from session if none supplied. Returns true if server stopped successfully, nil if not found, or throws if there is an error closing the socket.
Stop server with name or use the server-name from *session* if none supplied. Returns true if server stopped successfully, nil if not found, or throws if there is an error closing the socket.
(stop-servers)
Stop all servers ignores all errors, and returns nil.
Stop all servers ignores all errors, and returns nil.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close