OS specific functions?

I could be mistaken, but have a look at the InterprocessConnection and InterprocessConnectionServer classes in juce

InterProcessConnectionServer usage has a nice (untested) example in it showing how to set up two applications on a computer that can talk to each other.
the nice thing about InterprocessConnection is that the client sends/receives MemoryBlock instances.