Liking cljdoc? Tell your friends :D

fif.server.core

A fif server uses a stack-machine with a set of sessions, which are separate stack-machine instantiations.

A fif server uses a stack-machine with a set of *sessions*, which are
separate stack-machine instantiations.
raw docstring

*server-socket-instancesclj

A socket server creates a thread to accept a socket connection. The socket connection is then handled by a new thread with the server's predefined repl-fn.

A socket server creates a thread to accept a socket connection. The
socket connection is then handled by a new thread with the server's
predefined repl-fn.
sourceraw docstring

new-server-instanceclj

(new-server-instance sm name address port repl-fn repl-args)
source

preplclj

source

replclj

source

run-server-sessionclj

(run-server-session {:keys [session-id socket-connection socket-in socket-out
                            server-session-key server-name server-repl-fn
                            server-repl-args]})

function to run and evaluate a socket connection session.

function to run and evaluate a socket connection session.
sourceraw docstring

run-server-socket-instanceclj

(run-server-socket-instance name)

Accepts new socket connections for the server-socket-instance name defined in *server-socket-instances.

Notes:

  • new socket connections are managed by a newly generated thread
Accepts new socket connections for the server-socket-instance `name`
defined in `*server-socket-instances`.

Notes:

- new socket connections are managed by a newly generated thread
sourceraw docstring

socket-input-readerclj

(socket-input-reader socket-connection)
source

socket-output-writerclj

(socket-output-writer socket-connection)
source

start-socket-serverclj

(start-socket-server
  sm
  name
  &
  {:keys [address port repl-fn repl-args]
   :or {address "localhost" port 5001 repl-fn repl repl-args []}})
source

stop-socket-serverclj

(stop-socket-server)
(stop-socket-server name)

Stops the server instance with the given name

Stops the server instance with the given name
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close