1
1
12rbah2020-03-04 16:15:17
go
12rbah, 2020-03-04 16:15:17

How can you organize interaction between different programs?

For example, there are several exe files and they need to somehow interact with each other. I know the option of interaction via TCP between them, but somehow I don’t really want to raise the server on the local machine.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Armenian Radio, 2020-03-04
@gbg

There are a lot of ways . Some of them depend on the operating system used, some do not. It all depends on the problem being solved - it makes no sense to rewrite the textbook here.

#
#, 2020-03-04
@mindtester

For example, there are several exe files ..
good start. and they are precisely designed to interact:
- with each other?
- for any interaction at all?
and they need to somehow interact with each other
no. you need it . but for this reason, it is necessary to delve into many details
I know the option to communicate via TCP between them
so let us know? otherwise what is the answer? Or at least some advice? do you even count?

A
Alexander, 2020-03-04
@NeiroNx

Do it on TCP, the solution is universal. Now it is fashionable to do interaction through the RabbitMQ queue server, but there is the same TCP.

P
Peter, 2020-03-04
@petermzg

If you do not want to raise the server, then you can organize interaction through the USER.
Let it reprint the text that is displayed in one program to another.

V
Vitaly, 2020-03-04
@vt4a2h

There are many ways and libraries. Choose what suits you for solving problems: https://en.wikipedia.org/wiki/Inter-process_commun... (Approaches section).

D
Dmitry Makarov, 2020-03-09
@MDiMaI666

In nature, there are only two ways sockets and shared memory from two-way, instantaneous and reliable. And everything else is setting and wrapping over them.
And you need to distinguish between host and server. stdout, pipes, files, services are for non-direct and specific exchange. And given how the shared question is posed, you won’t write.
Therefore, use tcp, the simplest, most common and de facto standard. And there are a lot of libraries for interaction on it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question