[Cppcms-users] Server
Brought to you by:
artyom-beilis
From: eric m. <mid...@gm...> - 2016-01-02 11:32:58
|
Hi, I'm developing a robot that is controlled via the browser by issuing commands. Apart from the cppcms applications that are started from main, the server has an additional thread for controlling the motors: robotThread While the robotThread is acting on a command I like it to report progress back to the browser so that I can follow what exactly it is doing. The idea is to use ticker-example http://blog.cppcms.com/post/107 and replace the timed updates by something like a boost::signals2 slot so that progress in the robotThread can be reported to the cppcms comet application that can report it to the browser. Enclosed is the sourcecode of a small testprogram based on the ticker example. It does not compile because of an error: use of deleted function ‘ticker::ticker(const ticker&). I can't find a way to connect the cppcms comet application to the signal. Do you have any idea how to do this or any other way to use the cppcms comet application as a proxy between server and webclient? Kind regards, Eric |