X
X
xSlon2016-01-04 16:28:23
Java
xSlon, 2016-01-04 16:28:23

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

4 answer(s)
A
Alexander Ananiev, 2016-01-04
@xSlon

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)

V
Vyacheslav Zolotov, 2016-01-04
@SZolotov

Yes, it's easier to find a library in C ++ / C, build a native DLL and not make crutches

M
MrDywar Pichugin, 2016-01-04
@Dywar

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.

A
Ai Lab, 2016-01-05
@vpuhoff

.NET Remoting, child applications will "execute" the code they need "inside" the main one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question