Establish connection between web app and stand-alone app

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
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