Establish connection between web app and stand-alone app

Click For Summary
SUMMARY

This discussion focuses on establishing a data transfer mechanism between a stand-alone application written in C/C++ and a web application developed in C#.NET. The proposed solution involves creating an adapter mechanism that utilizes either XML or JSON document formats for data exchange. ZeroMQ is recommended as a robust tool for interprogram communication, facilitating the transfer of data between the web application and the stand-alone application through methods such as GET, POST, or AJAX protocols.

PREREQUISITES
  • Understanding of C/C++ programming
  • Familiarity with C#.NET development
  • Knowledge of JSON and XML data formats
  • Experience with interprocess communication tools, specifically ZeroMQ
NEXT STEPS
  • Research how to implement ZeroMQ for interprogram communication
  • Learn about creating and parsing JSON documents in C# and C/C++
  • Explore the use of AJAX for data transfer in web applications
  • Investigate best practices for designing adapter mechanisms between different programming environments
USEFUL FOR

Software developers, particularly those working with C/C++ and C#.NET, as well as anyone involved in integrating web applications with stand-alone applications for data transfer purposes.

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

  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 15 ·
Replies
15
Views
3K
Replies
2
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
2
Views
1K
  • · Replies 10 ·
Replies
10
Views
11K
  • · Replies 37 ·
2
Replies
37
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
5K