Answer the question
In order to leave comments, you need to log in
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
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.
For example, there are several exe files ..good start. and they are precisely designed to interact:
and they need to somehow interact with each otherno. you need it . but for this reason, it is necessary to delve into many details
I know the option to communicate via TCP between themso let us know? otherwise what is the answer? Or at least some advice? do you even count?
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.
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.
There are many ways and libraries. Choose what suits you for solving problems: https://en.wikipedia.org/wiki/Inter-process_commun... (Approaches section).
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 questionAsk a Question
731 491 924 answers to any question