I know that I can create a bi-directional named pipe. My question is more
"in a server can I have a thread that waits on a read and another thread
that writes to the pipe, while in the client a thread writes to the pipe ?
ie can 2 messages transit in 2 directions without colliding ? or must
full-duplex be understood like "you can read and write on a pipe but not at
the same time".
Thank you
Nicolas
They must be full duplex, because the following scenario:
Two processes with two treads. You have one handle to pipe in each process.
Both process threads have access to same handle so one thread can write and
other thread can read from same pipe at the same time on the SMP machines.
Same goes for other process as well.
If your question is more like can you use overlapped access, then this would
be probably also possible but not with standard CreatePipe.
Regards,
Slobodan
"Nicolas Cadilhac" <cadilha...@sympatico.ca> wrote in message
news:bLOSb.45251$mf4.1...@news20.bellglobal.com...
Thanks you
I don't know. There is always a way to find some native API function that
can be used to accomplish this purpose. But in this case I would not
recommend wasting the time to do this because I fail to see purpose of
request for this feature.
Why do you need this? We may find another way to do what ever is that you
want to do.
Regards,
Slobodan
"Nicolas Cadilhac" <cadilha...@sympatico.ca> wrote in message
news:r6QSb.45888$mf4.1...@news20.bellglobal.com...
Everything is fine if you read only from one thread and write only from one
thread. Problems arise if you try to read from two threads or write from
two threads.
"Slobodan Brcin (eMVP)" <sbr...@ptt.yu> wrote in message
news:eFewlYG6...@TK2MSFTNGP09.phx.gbl...
"Mike" <m@b.c> wrote in message
news:On5$7oN6DH...@TK2MSFTNGP10.phx.gbl...
For overlapped pipe IO one has to use named pipes.
-Kirk
I haven't used them for a while, and I never needed overlapped access on
pipes.
Thanks,
Slobodan
"Kirk Ferdmann" <kirk_f...@nospam.hotmail.com> wrote in message
news:Er6dnRw-upD...@comcast.com...