dev-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dev-serveez] Guile Servers


From: stefan
Subject: Re: [dev-serveez] Guile Servers
Date: Fri, 20 Jul 2001 16:27:35 +0200 (CEST)

> On Fri, 20 Jul 2001, Martin Grabmueller wrote:
> 
> > One question: Is it possible to associate data with a socket from
> > Guile, so that one can save state from one handle-request to the next?
> 
> Each socket has a unique smob #<svz-socket address>. Maybe that is a
> possibility to identify concurrent request from a certain socket. Does it
> help ?

Please forget about this comment. This is just what I wanted to start with
you writing guile servers: You try implementing something -> Miss
something -> Me is going to fix it.

Most of the builtin servers use the miscelleanous field of the
"svz_socket_t" in order to remember socket specific things. Just
implemented (and checked into CVS) this for Guile. It is called
(svz_sock:data sock data) where "data" is optional. The procedure returns
any previously set value. Now I hope this will work. (I guess you
just want to remember previous lines in order to evaluate multi-liners ?)

One more comment for the eval-server: The (module (ice-9 safe)) is not
part of "guile-1.4" and it there is no (object->string). But there should
be some replacement... Thus I could not really test your eval-server, but
it seems pretty anyway.

Cheers,
        address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]