Index

For the server

DaemonMode.serveFunction
serve_sync(port=3000, shared=false, print_stack=true, async=false)

Run the daemon, running all files and expressions sended by the client function.

Optionals

  • port: port to listen (default=3000).
  • shared: Share the environment between calls. If it is false (default) each run has its own environment, so the variables/functions are not shared.
  • print_stack: Print the complete stack when there is an error. By default it is true.
  • async: Run the clients in different clients at the same time.
  • threaded: Run each client in a new thread (true by default if async is true).

For the client

DaemonMode.runargsMethod
runargs(port=PORT)

Ask the server to run all files in ARGS.

Optionals

  • port: Port of the server to ask (default=3000).
DaemonMode.runfileMethod
runfile(fname::AbstractString)

Ask the server to run a specific filename.

Parameters

  • fname: Filename to run.

Optionals

  • args: List of arguments (array of String, default=[]).
  • port: Port (default=3000)
  • output: stream in which it is shown the output of the run.
DaemonMode.runexprMethod
runexpr(expr::AbstractString)

Ask the server to run julia code in a string pass as parameters.

Parameters

  • expr: Julia code to run in the server.

Optionals

  • port: Port (default=3000).
  • output: stream in which it is shown the output of the run.
DaemonMode.sendExitCodeMethod
sendExitCode(port)

send the exit code, it closes the server.

Optionals

  • port: port to connect (default=3000).