Hello Koen!

Thanks very much for your answers.  Your explanation below is
very helpful.

I had been looking through the Wt documentation, but didn't come
across anything with this level of overview plus details.  Is there
somewhere in the documentation I should make a point of looking?

Or is this list (plus the source code) the best way to go when I have
these kinds of questions?


Thanks again for your help.


K. Frank


On Mon, Jul 6, 2015 at 5:44 AM, Koen Deforche <k...@emweb.be> wrote:
> Hey,
>
> 2015-07-04 4:09 GMT+02:00 K. Frank <kfrank2...@gmail.com>:
>>
>> Just to confirm, is the following the minimal wthttpd server?
>> ...
>> Note, I do not derive from WApplication -- I just instantiate a plain
>> WApplication and pass it to WRun.  (Of course my app has no
>> dynamic content, but I guess the WApplication is the wthttpd server
>> and the call to WRun starts it up.  Is this correct?
>
> You should even be able to do like this (without a callback):
>
> int main (int argc, char **argv) {
>   WServer server(argc, argv, WTHTTP_CONFIGURATION);
>   if (server.start()) {
>   WServer::waitForShutdown();
>   server.stop();
>   }
>
>   return 0;
> }
>
> But later you will have a dynamic application, so your solution might then
> be better.
>
> WRun(), or server.start(), starts the httpd server. The createApplication()
> callback
> is used only for the dynamic sessions -- for each session there's a call to
> this callback
> function.
> ...
> Regards,
> koen

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to