Description

Remote Launch Service

Author

Kon Lovett

Version

Requires

Usage

remote-launch-client

Download

remote-launch.egg

Documentation

Purports to provide an API for remote launching of Chicken oriented processes.

Client Parameters

parameter: (default-remote-launch-port [PORT 4001])

Gets or sets the port number to communicate with a remote launch server.

parameter: (default-remote-launch-ssl-protocol [PROTOCOL-SYMBOL])

Gets or sets the SSL protocol for verification; one of (none sslv2-or-v3 sslv2 sslv3 tls).

Client Procedures

procedure: (make-remote-launch-client NAME [HOST "localhost"] [PORT (default-remote-launch-port)] [CONTEXT (default-remote-launch-ssl-protocol)])

Returns a remote launch client object of NAME for the remote launch server at HOST:PORT.

The CONTEXT must be a ssl-protocol symbol, #f for no SSL support, or a ssl-client-context object.

procedure: (remote-platform-request CLIENT)

Returns a list of the remote server version, chicken version, processor, byteorder, OS type, and OS version.

procedure: (remote-repository-list-request CLIENT)

Returns an association list of the remote repository - (<extension-symbol> <version-string> [rest ...]).

procedure: (remote-extension-information-request CLIENT EXTENSION)

Returns information for the specified EXTENSION.

procedure: (remote-install-request CLIENT EXTENSION [HOST #f] [PROXY #f])

Performs a remote installation of the requested EXTENSION. Returns the output of chicken-setup.

procedure: (remote-uninstall-request CLIENT EXTENSION)

Performs a remote installation delete of the requested EXTENSION. Returns the output of chicken-setup.

procedure: (remote-spawn-request CLIENT COMMAND [COMMAND-ARGUMENTS '()])

Performs a remote process start of COMMAND COMMAND-ARGUMENTS. Returns a list - (<pid> (<start time UTC vector>)).

procedure: (remote-exit-request CLIENT PID)

Returns a list of the pid and the exit status of the remote process identified by PID. Either (<pid> #f) when the process is still running or (<pid> (<normal-exit-flag> <status-code or signal-code> <stop time UTC vector>)).

procedure: (remote-shutdown-request CLIENT PID)

Performs a process termination for the process identified by PID. Return value is the same as remote-exit-request.

Currently cannot shutdown a remote Windows process.

Server

The remote launch server is named 'chicken-launchd' and installed in the default program directory.

Usage: chicken-launchd [options...]

 -b, --backlog=BACKLOG    number of maximally pending connections [default: 4]
 -S, --ssl=SSL-PROTOCOL   SSL protocol symbol [default: none]
 -t, --host=HOST          host restriction [default: <none>]
 -p, --port=PORT          port number [default: 4001]
 -d, --debug              Debug mode
 -V, --version            Display version
 -h, --help               Display this text

Issues

SSL support is incomplete and shouldn't be used.

The chicken-setup stderr is not captured.

License

Copyright (c) 2006, Kon Lovett.  All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the Software),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.