At Tue, 19 Jul 2005 10:07:23 +0200,
felix winkelmann wrote:
> 
> On 7/19/05, Daishi Kato <[EMAIL PROTECTED]> wrote:
> > For example, an application would be a server program
> > that is controlable by a user through some kind of commands.
> > In other words, a server program with CUI.
> > Currently I could do it by csi, since it does not block the server thread,
> > but what if I would like to compile it into a single executable?
> > Would char-ready? help?
> > 
> 
> How do you communicate with the sever? If it's a sub-process,
> you can use `process' (posix unit) which is non-blocking:

I see how "process" works in your example,
but the application I want is not the case.
Maybe, my example was misleading.
I would like to make a server, not a client,
say a HTTP server, and let a user control the HTTP server
via stdin/stdout command shell.

% csi -script my-http-server.scm
my-server> start server port=8080
my-server> show current connections
...

while I could always connect to the port 8080 and communicate with the server.

The command can be S-expression, not the own format.
For example,

% csi
#;1> (load "my-http-server.scm")
#;2> (start-server 8080)
#;3> (show-current-connections)
...

Then, I would make a perl script to communicate with "my-http-server"
and translate the S-expression command to any format,
but the point is I would like to compile it.

Does this make sense?

Thanks,
Daishi


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to