I have two separate programs: one in Java and one in C ++ running on Windows. We need to make bi-directional interprocess communication between them.
So far, we have used this inconvenient solution for writing to text files and reading them on the other hand, where the manufacturer created the .lock file when he wrote, and the consumer would delete it when he was reading ... as I said, it is embarrassing.
If we were on * nix, we would use pipe using popen () in C ++ and RadomAccessFile on the Java side. It seems to work well.
What can we do on Windows? Can we use named pipes?
Thank.
source
share