On Tuesday 17 August 2004 11: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. Example:
>
> Create a socket driver that, on connection to it's IP/port, gets an
> interpreter thread and in it runs the procedure configured for it, ie:
>
> proc smtp {in out from_addr args} {smtp code}
>
> When the proc exits, the connection closes and, just like HTTP, the
> interpreter is cleaned up a bit and put back in the pool.
>
> This would make it easy to implement any protocol you want, possibly using
> expect. It could make nsd a very interesting core for building any
> client/server apps.
>

This is basically what Vlad's patch is doing.
Please go ahead and checkout both proposals
to see real pros/cons of each of them.

Althought Vlad's patch is much simpler I somehow think
that Stephens one is cleaner and more powerful on the
long run.

Zoran


--
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