Where can I find the manual about socket communication with Maxima ?





Thank you.

Your information is useful, I can go further by knowing the keywords.


regards,


-----Original Message-----
From: Volker van Nek <volkervannek at googlemail.com>
To: visual_cpp at programmer.net; Maxima at math.utexas.edu
Sent: Sat, Dec 19, 2009 7:09 pm
Subject: Re: [Maxima] Where can I find the manual about socket communication with Maxima ?


No, AFAIK there is no easy way out. The output stream doesn't contain
ny flag to separate good from bad. 
If I am not mistaken, errors can occur in Lisp and in Maxima, so the
tring containing an error message contains either "-- an
rror." (Maxima level) or "Maxima encountered a Lisp error:" (Lisp
evel). 
I remember that from time to time there is a question about suppressing
rror messages, but I cannot remember what came out of this discussions.
aybe you'll find something in the list-archives.
Sorry, I can't be more helpful.
Volker van Nek

m Freitag, den 18.12.2009, 06:57 -0500 schrieb
isual_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