On Tue, 2004-08-17 at 03:28, Bas Scheffers wrote:
> Very interesting. After only reading your nutshell descriptions, to me
> what would seem like a nice way of handling this is lightweight plumbing
> in C and the bulk in Tcl.


This is the essence of my proposed solution.  You are required to write
a parser in C, you can handle the processing in either C or Tcl in the
normal fashion by registering a proc.

Strictly speaking, you're not even required to parse the request in C.
The minimum requirement is that you identify the end of the request
(this would be a line end for an echo server request).  You can do the
actual parsing in Tcl within your registered proc; the content of the
entire request is available by calling [ns_conn content].


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to