Named Pipes in C++

P

Prathap

Hi,
I am a newbie to c++ and I am looking for examples in using pipes
for IPC communication. My two processes are independent and they
cannot use a unnamed pipe, so I am looking for examples that can teach
me about named pipe. I Googled a little and nothing turned out useful.
Any pointers appreciated.

thanks
~
Prathap
 
J

James Kanze

Prathap said:
I am a newbie to c++ and I am looking for examples in using pipes
for IPC communication. My two processes are independent and they
cannot use a unnamed pipe, so I am looking for examples that can teach
me about named pipe. I Googled a little and nothing turned out useful.
Any pointers appreciated.

It has nothing to do with C++; C++ as such doesn't know anything
about named pipes. You'll have to check with a group specific
to your OS. (On some OS's, of course, you can use a named pipe
exactly as if it were a file, e.g. with [io]fstream. Even then,
however, you'd probably have to be careful about flushing and
such. I'm not sure that the use would be totally transparent.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top