(Slightly off-topic)

Take a look at WIOService, which is actually a descendant of asio::io_service.
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WIOService.html
You can get WIOService using WServer::ioService() method.

On Thu, May 31, 2012 at 4:06 PM, Rutger ter Borg <[email protected]> wrote:
>
> Dear list,
>
> I'm trying to mix Boot.Asio and Wt libraries in a project of mine.
> Unfortunately, they do not cooperate nicely. I've narrowed it down to
> the following case:
>
> struct server {
>     void run() {
>         server_.setServerConfiguration( 1, 0, "/etc/wt/wthttpd" );
>         bool success = server_.start();
>     }
>
>     Wt::WServer server_;
>
>     // Uncomment for segmentation fault
>    //boost::asio::io_service ios;
> };
>
> int main() {
>   server s;
>   s.run();
> }
>
> Just by adding an instance of Asio's io_service, running this class' run
> method will give yield a segmentation fault. It will also cause a
> segmentation fault by linking in io_service from somewhere else.
>
> Any hints and/or suggestions on how to circumvent this?
>
> A more minor point: the configuration doesn't get read in case I pass
> argc==0 to setServerConfiguration. Why is that?
>
> Thanks,
>
> Rutger
>
>
>
> ------------------------------------------------------------------------------
> 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