external library through sockets



Robert Dodier wrote:
> On 9/10/07, Fabrizio Caruso <caruso at dm.unipi.it> wrote:
>
>   
>> Using CFFI is a bit complicated for me because my knowledge
>> of Lisp is very limited.
>>
>> I thought that maybe I could write a server program in C/C++
>> that uses sockets to communicate with Maxima.
>>
>> Can Maxima use sockets for input/output?
>>     
>
> Yes, but socket functions are not exposed at the Maxima user
> level; you would have to go into Lisp to call them, and they are
> probably different for each Lisp implementation.
>
> In principal, calling external functions via a socket is not
> too complicated, but there are many details to take care of.
> It's not clear to me that it would be any simpler than CFFI.
>
>   
There's trivial-sockets (unsupported now) and usocket.  usocket runs on
every Lisp maxima supports.  Except GCL, according to the usocket cliki
page (cliki.net/usocket).

Ray