Sending messages between processes

Discussion in 'Mac Programming' started by rinseout, Jun 21, 2005.

  1. rinseout macrumors regular

    Joined:
    Jan 20, 2004
    #1
    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.
     
  2. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #2
    Not that I know much about this but will pipes work?
     
  3. ChrisBrightwell macrumors 68020

    ChrisBrightwell

    Joined:
    Apr 5, 2004
    Location:
    Huntsville, AL
  4. rinseout thread starter macrumors regular

    Joined:
    Jan 20, 2004
    #4
  5. peterparker macrumors regular

    peterparker

    Joined:
    Mar 12, 2005
    Location:
    Houston
    #5
    Knowing a moderate amount of C and reading the above link, it looks like named pipes or Unix sockets would both be good choices.
     

Share This Page