Hey Rutger,

WSocketNotifier is a sore point of Wt... It appears that it is
impossible to implement the current API properly using asio (and we
blame asio, we have filed a bug on it to the asio people but they seem
not to care although they have changed the related API). It would be
possible to implement it using FastCGI but since we have no good
overall solution, we didn't yet.

I would recommend to steer away from it, and instantiate your own asio
service with one or more threads, and use the WApplication's update
lock if you want to manipulate widgets as a result of notifications
(you'll probably need a WTimer or server-push to propagate the info
back to the user).

Regards,
koen

2010/4/16 Rutger ter Borg <[email protected]>:
>
> Hello,
>
> I'm trying to use sockets in conjunction with Wt (for use with a remote
> model), what would be the recommended way? I'd prefer to be able to use Wt's
> native event dispatcher. Would it be possible to use Wt in combination with
> Asio's sockets? I see there's a socket notifier class, which only works when
> Asio is in use? Is there some way to access Asio's io_service? Or should
> this be done in some other way?
>
> Thanks,
>
> Rutger
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to