If you want to shutdown the whole server, use method stop() of WServer:

Wt::WServer::instance()->stop();

http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WServer.html#a806538821ad3fe9b4b0b28c55fa160a0

On Sun, Aug 19, 2012 at 5:53 PM, Mohammed Rashad
<[email protected]> wrote:
>
> wapp //WApplication instance
> wapp->redirect("error.html");
> wapp->quit();
>
> connect this code to a button click or whatever
>
> redirect(...) is optional
>
>
> On Sun, Aug 19, 2012 at 7:05 PM, Lyase Damasked <[email protected]> wrote:
>>
>> for maintenance purposes.
>>  I would like an  app operator to  shutdown  the app.
>> can i emit a shutdown signal from within  code in the  Wt::WApplication .
>> if so any tips are welcomed.
>> Lyase.
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>
>
>
> --
> Regards,
>    Rashad
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to