Establish connection between web app and stand-alone app

AI Thread Summary
To connect a stand-alone application written in C/C++ with a web application in C#.NET, an adapter mechanism is necessary to facilitate data transfer between the two. This can be achieved by defining a common data format, such as XML or JSON, allowing both applications to process the data effectively. ZeroMQ is suggested as a potential solution for interprogram communication, enabling efficient message passing. An example scenario involves using NodeJS for the web application to handle data input via GET or POST requests, which can then be sent to the C/C++ program using ZeroMQ. Implementing this setup will ensure seamless data exchange between the applications.
pairofstrings
Messages
411
Reaction score
7

Homework Statement



Transfer data from stand-alone application written in C/++/# to web application written in C#.NET.
Transfer data from web application written in C#.NET to stand-alone application written in C/++/#.

Homework Equations



The stand-alone application runs on my PC and the web application is hosted on the server.

3. The Attempt at a Solution


I think, I need an adapter mechanism that can form a bridge between web application and stand-alone application.
What I want to know is how to build the adapter mechanism that forms a bridge between web application and stand-alone application.
 
Last edited:
Physics news on Phys.org
You could define an XML document format or a JSON document format that both applications can process and either stream it or write it to a file for the other program to read.

Checkout ZeroMQ to see if it might meet your needs for interprogram communication.

www.zeromq.org

As an example, I might design a web application using NodeJS. Folks enter data into a web page. The data is sent back to the NodeJS server via a GET or POST operation. Alternatively the data might be transferred via AJAX protocol as a JSON document. The NodeJS application then might use ZeroMQ to transfer the data to another C/C++ program running in the background and might use ZeroMQ to listen for any response from the C/C++ program.

https://en.wikipedia.org/wiki/Ajax_(programming)

https://en.wikipedia.org/wiki/Representational_state_transfer
 

Similar threads

Back
Top