Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to build a dashboard to show analysers data. They are very dynamic in nature and i would like to have it updated in realtime. I am thinking of using websocket for sending data from webserver to client.

But, currently C++ is used to communicate between the analysers. How can I communicate with C++ and send the data to client effortlessly ? I think database will be a big no due to processing time and same issue with shared memory. Though of using memcached since we can share data easily over languages but there is no trigger upon new data and once again its ending up like shared memory.

We planned to use sockets to communicate between C++ and PHP. In this case C++ will act as server and PHP as client and then PHP should forward data to client using websocket ( Rachet ).

Since I am just familiar with basic concepts of PHP, I just wanted to know is there any good way to get data from C++ and top show on client ?

Should I need threading here to read from c++ and to send to client.

Open to all suggestions from other frameworks, libraries etc., as we prefer using them than building from scratch.

What I have tried:

I have done my homework using google but I am ending up with not exact solution or really getting lost.
Posted
Updated 18-Jul-17 22:25pm

1 solution

It is an interesting issue because the are different way to do the job. Take a look at this discussion at stackoverflow. Another interesting way is CGI as described in this tutorial. By the way multi threading is absolut necessary.

Please publish an article about your results because I am interested to extend my knowledge.
 
Share this answer
 
Comments
Mohibur Rashid 19-Jul-17 7:41am    
Perhaps CGI might be a better solution. Unless shared data is being used

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900