Answer the question
In order to leave comments, you need to log in
How to organize data exchange between two programs locally on one PC?
Good afternoon!
There is one popular library which is written in C#. I planned to use Java in my project. I do not really want to rewrite the library in Java or use C # in my project. There was an idea to organize data exchange between the C# library and any other PL through some kind of API. The question is - is it possible to do this, how best to do it, what materials to read? So far, the only way to exchange through a .txt file comes to mind, but this is not the most reliable option, so I will use it only as a last resort.
Thank you in advance!
Answer the question
In order to leave comments, you need to log in
Communication methods can be organized through sockets, shared memory, files, named pipes, rpc, and so on.
I would organize via sockets or shared memory (shared memory)
Yes, it's easier to find a library in C ++ / C, build a native DLL and not make crutches
WCF Windows Communication Foundation
Video - Lesson 1. Introduction to Windows Communication Foundatio...
This technology will allow you to communicate within 1 computer (pipe channels), or over a network, for programs in any language.
In simple terms, this is a super wrapper from Microsoft instead of bicycles that people were forced to make before the advent of WCF. It abstracts you from the problems of interaction, their control, security, queue, synchronization.
Example - no need to worry about sockets, just make WCF using tcp address and binding, everything else will be done for you automatically.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question