Using maxima in C++ app



On 1/17/09, Stefano Ferri <ferriste at gmail.com> wrote:

>  maxima -s port
>
>  but when I type it in a shell it doesn't works, giving this error:
>
>  maxima -s 4010
>  jfa: starting server on port 4010
>  Maxima encountered a Lisp error:
>
>  UNIX error 111 (ECONNREFUSED): Connection refused

Well, the stated description of the option is a little misleading ---
it does not start Maxima as a server, but rather a client, which is
looking for an open socket at the indicated port.
Typically a GUI program acts as the server and launches
Maxima as a client to talk to the port which it is listening to.
I'll try to rework the documentation of the -s option to clarify its purpose.

share/contrib/maxima-server.lisp does create an ordinary Unix-ish
server, which listens for connections and forks a new Maxima process
for each client. As it relies on POSIX functions, it is not portable
Common Lisp; at present it works with SBCL only.

Hope this helps

Robert Dodier