Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use pipes

Status
Not open for further replies.

HNoel

Programmer
Sep 4, 2002
4
0
0
US
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top