Okay let's see if I understand that correctly.

Your program has its own event loop, processing other protocols other than
HTTP.
In addition to that, you are getting requests from browser (or any other
source),
that are HTTP.

If I understand that correctly, all you need to do is spawn one thread with
boss shttpd context in it. It will take care of all your HTTP requests.

I do not understand why boss shttpd thread must send anything back to the
main program?

>From my understanding, this is the callback functions, that actually are
getting
some data, might communicate with main program - using a pipe or whatever.
When you are registering an URI, you can specify a private pointer which
will be
passed to the callback, that pointer may also point to the pipe.


Could you be more clear when describing your architecture, please?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general

Reply via email to