Where can I find the manual about socket communication with Maxima ?
Subject: Where can I find the manual about socket communication with Maxima ?
From: Volker van Nek
Date: Sat, 19 Dec 2009 11:09:44 +0100
No, AFAIK there is no easy way out. The output stream doesn't contain
any flag to separate good from bad.
If I am not mistaken, errors can occur in Lisp and in Maxima, so the
string containing an error message contains either "-- an
error." (Maxima level) or "Maxima encountered a Lisp error:" (Lisp
level).
I remember that from time to time there is a question about suppressing
error messages, but I cannot remember what came out of this discussions.
Maybe you'll find something in the list-archives.
Sorry, I can't be more helpful.
Volker van Nek
Am Freitag, den 18.12.2009, 06:57 -0500 schrieb
visual_cpp at programmer.net:
>
>
> Thank for replying.
>
> I follow your suggestion and now the connection is already
> established.
>
> Without doing string manipulation, is there the easiest way to extract
> the output generated by maxima and get notified whether the output has
> an error?
>
>
> regards,
>
>
>
>
> -----Original Message-----
> From: Volker van Nek <volkervannek at googlemail.com>
> To: visual_cpp at programmer.net; Maxima at math.utexas.edu
> Sent: Fri, Dec 18, 2009 5:05 pm
> Subject: Re: [Maxima] Where can I find the manual about socket
> communication with Maxima ?
>
> Hi,
>
> 1. you have to create a socket server (Maxima does not act as a
> server!).
> 2. connect Maxima to this socket (as a client):
> Windows: pathTo\maxima.bat -s portNr
> Linux: maxima -s portNr
> 3. now the server itself or another socket client can communicate to
> Maxima over the socket using the corresponding in/output-streams of the
> socket-connections.
>
> I went through this in Java. If you are interested, I can send you my
> files. But more interesting for you might be the source code of
> wxMaxima:
> http://sourceforge.net/projects/wxmaxima/files/wxMaxima/0.8.4/wxMaxima-0.8.4.tar.gz/download
> In wxMaxima.cpp you can read this in C++. This might be more helpful if
> you program in C#.
>
> Volker van Nek
>
>
> Am Freitag, den 18.12.2009, 01:33 -0500 schrieb
> visual_cpp at programmer.net:
> >
> >
> > Dear all members,
> >
> > I am interested to create a mathematics problem builder using C#,
> > LaTeX, and Maxima.
> >
> > I have no information about the way my C# code can communicate with
> > Maxima.
> >
> > Some searches on the internet only end with almost nothing.
> >
> >
> > Does anyone here know where I can find this information?
> >
> >
> > Thank you in advance.
> >
> >
> > regards,
> >
> >
> >
> >
> > _______________________________________________
> > Maxima mailing list
> > Maxima at math.utexas.edu
> > http://www.math.utexas.edu/mailman/listinfo/maxima
>