Hi Matthew,
you need to manually start the io service, like this:
...
Wt::WIOService io;
io.start();
Client client(io);
...
regards,
Pieter
On Thu, Jun 27, 2013 at 4:37 AM, Matthew Sherborne <msherbo...@gmail.com>wrote:
> Hi guys,
>
> I'm trying to use the Wt client in a standalone app, without any
> WApplication or WServers.
>
> Is this possible ? What am I doing wrong ?
>
> This is the code:
> https://github.com/lyase/witty-tutorial/blob/master/rest-api/client.hpp
>
> and it's called in client.cpp in the same dir.
>
> When I run it, the
>
> io.stop();
>
> on line 42 finds no work going on and returns immediately. The client's
> done() signal is never fired.
>
> Any guidance in the right direction appreciated.
>
> Many Thanks,
> Matthew Sherborne
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest