Pipe Communications:
I am trying to do the following:
Process_A:
Creates a pipe
Starts Process_B
Process_B:
Sends messages thru the Pipe
Process_A:
Checks the Pipe for a message.
If Message Present, processes it
If Message not Present, Pipe should return inmediately with an
error code, NOT WAIT TILL ANOTHER MESSAGE.
------------------------------
The above is a straight forward application which I have done many times
on mainframes.
However, I don't seem to be able to get the right set of parameters
in C++.
I've tried CreateNamedPipe and CallNamedPipe, with NOWAIT options, but
it always seems to get into a wait state.
Can somebody point me to documentation that will give examples on the
use of pipes.
Thanks.
I am trying to do the following:
Process_A:
Creates a pipe
Starts Process_B
Process_B:
Sends messages thru the Pipe
Process_A:
Checks the Pipe for a message.
If Message Present, processes it
If Message not Present, Pipe should return inmediately with an
error code, NOT WAIT TILL ANOTHER MESSAGE.
------------------------------
The above is a straight forward application which I have done many times
on mainframes.
However, I don't seem to be able to get the right set of parameters
in C++.
I've tried CreateNamedPipe and CallNamedPipe, with NOWAIT options, but
it always seems to get into a wait state.
Can somebody point me to documentation that will give examples on the
use of pipes.
Thanks.