Index
For the server
DaemonMode.serve
— Functionserve_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.runargs
— Methodrunargs(port=PORT)
Ask the server to run all files in ARGS.
Optionals
- port: Port of the server to ask (default=3000).
DaemonMode.runfile
— Methodrunfile(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.runexpr
— Methodrunexpr(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.sendExitCode
— MethodsendExitCode(port)
send the exit code, it closes the server.
Optionals
- port: port to connect (default=3000).