Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rinseout

macrumors regular
Original poster
Jan 20, 2004
160
0
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.
 

peterparker

macrumors regular
Mar 12, 2005
247
0
Houston
Knowing a moderate amount of C and reading the above link, it looks like named pipes or Unix sockets would both be good choices.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.