I am studying his advice, but I confess that is a little beyond my
current knowledge. An example would be really good.

Thanks,
John

On 06/19/2011 04:34 PM, Koen Deforche wrote:
> Hey John,
> 
> 2011/6/16 John Robson <[email protected]>:
>> I have a timer running on the main{}, it updates a DB; my site has some
>> pages that show information from this DB.
>>
>> I would like to update all the pages that are open showing information
>> from this DB (after DB updated).
>>
>> In this example, the Home should be updated after each execution of the
>> timer (new list generate).
>>
>> Can anyone help me with this problem?
> 
> The solution consists of the following bits:
>  - gather session IDs of live sessions in a global list (protected with a 
> mutex)
>     in application constructor you add the ID, in destructor you remove the ID
>  - in your thread, use WServer::post() to post a message to all these sessions
> 
> I would actually make a terrific example to illustrate the WServer::post() 
> API.
> 
> Regards,
> koen


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to