noemailplease
2009-08-13 02:16:00 UTC
Hi all,
Noob question about interprocess communications between two apps running
on the same machine.
I need to pass information from one application to the second (one-way).
Part of the problem is, the first app only has its data at infrequent
intervals and the second app only needs to read the IPC data at
infrequent intervals; but both apps cannot afford to sit around waiting
for the other. I am guessing I need some sort of asynchronous style of
comms, where the first app posts its message then continues working,
then at some later time the second app will read the message?
I was considering using files written on the HDD, but would prefer a
faster method. Maybe a mailslot is what I need? Maybe a named pipe?
Any advice? Sample codes are always welcome :)
TIA
P.S. The comms methods will be written into a win32 dll to be called
from both apps.
Noob question about interprocess communications between two apps running
on the same machine.
I need to pass information from one application to the second (one-way).
Part of the problem is, the first app only has its data at infrequent
intervals and the second app only needs to read the IPC data at
infrequent intervals; but both apps cannot afford to sit around waiting
for the other. I am guessing I need some sort of asynchronous style of
comms, where the first app posts its message then continues working,
then at some later time the second app will read the message?
I was considering using files written on the HDD, but would prefer a
faster method. Maybe a mailslot is what I need? Maybe a named pipe?
Any advice? Sample codes are always welcome :)
TIA
P.S. The comms methods will be written into a win32 dll to be called
from both apps.