Operating Maxima out of another program by a TCP connection



maxima -s 4010 does not start a socket server on port 4010 but it
tries to connect to a server on port 4010 (since there is no server
running on that port you get the error "Could not connect"). Your
program needs to start a socket server to which maxima then connects
with this command.

Andrej

On Jan 10, 2008 2:15 PM,  <maxima-list at ssteiner.com> wrote:
> Dear Maxima experts,
>
> I'd like to operate Maxima out of a self-programmed software by using a TCP connection. I use Windows 2000/XP. According to the source code of wxMaxima, it should be possible to start maxima in something like a "server mode" in which it allows connecting to it through a tcp connection. But I still haven't succeeded in starting Maxima this way. What are the correct command line parameters for maxima.exe to make Maxima accept tcp connections on port xy (e.g. 4010)? I already tried
>   maxima -eval "(maxima::start-server 4040)" -eval "(run)" -f
>   [=> error message: Error in SYSTEM::SET-UP-TOP-LEVEL [or a callee]: Could not connect]
> and
>   maxima -s 4010
>   [=> Maxima just quits, nothing happens]
> but both command lines don't work. How to make Maxima become operatable using a TCP connection?
>
> Thanks a lot!
>
> Bye,
> Sebastian
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima