Mac Sending messages between processes


macrumors regular
Original poster
Jan 20, 2004
Say I have two interactive console-mode applications written in C++.

1) Is there a portable way (in the sense of common UNIX-ish platforms) to send a data structure from the first program to the second, which processes the data structure in some fashion and then waits for the next one?

2) Assuming the answer to 1) is "yes", how hard is this to implement?

3) Assuming the answer to 2) is "not very", then is there a good article that goes through this stuff?

I really don't have time to get really into a(nother) complicated programming issue, but if there's a simple way of doing this, it would make my life easier.

Thanks for any advice.


macrumors regular
Mar 12, 2005
Knowing a moderate amount of C and reading the above link, it looks like named pipes or Unix sockets would both be good choices.