Hmm. I think that WriteResponse() could be implemented with setjmp/longjmp.
We must make sure that data like shttpd_arg is dynamically allocated
and available
after the jump. Currently, it is a stack variable.
so having shttpd_printf(), and shttpd_copy() would be enough then !
(shttpd_copy == WriteResponse)
Well, and callback code must be aware that shttpd_{printf,copy} may yield
control, and application state might be changed.
So much hassle for just not using threads :-)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general