Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Communicate between c++ applications and web applications

What are the various ways I can achieve communication (like function calls) from a web application to a c++ application? I've developed the c++ application to do image processing and want to display and transmit the result in real time to a web-page displayed on a browser.

like image 492
iceman Avatar asked Dec 11 '25 07:12

iceman


2 Answers

Things have changed since this was asked. You can now achieve this type of communication using websockets.

See:

http://en.wikipedia.org/wiki/WebSocket

and

http://www.html5rocks.com/en/tutorials/websockets/basics/

like image 94
Gavan Woolery Avatar answered Dec 12 '25 19:12

Gavan Woolery


Nothing will 'transmit to a web browser'. Web browsers have to ask, and then you can respond with the data you want to display. As per @The MYYN, you can just have the C++ code drop suitable files and the browser can ask for them. Or, you can set up some sort of webapp.

If you use Ajax you can get the browser to poll for things to show and then show them. It's not a simple architecture.

like image 29
bmargulies Avatar answered Dec 12 '25 19:12

bmargulies



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!