Error using Sockets with Maxima



On 2/17/12, Brian Chacko <brianchacko at yahoo.com> wrote:

> I wanted my API to communicate with maxima using sockets the same way
> WxMaxima is being used. Using this method,  I created a local server
> application and try to connect maxima to the server using the command
>
> [Path to maxima.bat]/maxima.bat -s 7755
>
> I get the following error...
>
> [Path to Maxima]\bin>maxima.bat -s 7755
> Connecting Maxima to server on port 7755
> Maxima encountered a Lisp error:
>
>  Error in LISP:LAMBDA-CLOSURE [or a callee]: Could not connect

Brian, maxima -s doesn't create a Maxima server (i.e. listening on
the specified port). Instead it creates a client, which attempts to
connect to a server (such as wxMaxima) on the port.

Take a look at pMaxima, which is a Maxima server implemented
in Perl. There's a little bit about it in this message:
http://permalink.gmane.org/gmane.comp.mathematics.maxima.general/37185

HTH

Robert Dodier