This is a proof-of-concept of how an "calculation" application could communicate with a web application involving ZeroMQ sockets,
First, get the ZeroMQ library for both C/C++ and PHP :
You'll need to setup a web server (for instance Apache) which can executes PHP scripts
To compile and run the app, simply use cmake
:
cd app/
mkdir build
cd build/
cmake ../.
make
./App
Then, run a web server and go to web/index.htm
, you should see a dot spinning around. This
is a representation of what is calculated in the application, PHP is here used as a proxy to
get data from the app.