LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

win32 named pipe different read modes each end

Does anyone, by some remote chance, know, if you can have different read modes on the ends of the same Win32 named pipe?  Can I have one end of the pipe configured to be in the "no wait" mode, and at the same time have the other end of the same pipe confured to the "wait" mode?

 

Menchar

0 Kudos
Message 1 of 4
(3,146 Views)

To answer my own question --

 

It looks to me as if the wait mode for a pipe is actually a property of the handle to the pipe, not of the pipe itself.   The server and the client both can change the wait mode of their respective handles to the same named pipe, so it must be true that you can have different wait modes on each end of the same named pipe - otherwise the API wouldn't allow it, if the pipe wouldn't work that way.

 

And, it turns out, that all Win32 pipes are named pipes - anonymous pipes have automatically-generated names created by the OS but never shown to the pipe users.

 

It also looks like .net remote is yet another api to learn - Win32 named pipes don't really work in .net apparently.

 

I dunno, as time goes by, the whole .NET thing seems stupider and stupider to me.     A write once, run everywhere architecture that only runs on Win32/Win64 machines anyway.

 

This year Gates is retired and the Micro$oft OS head guy has been replaced.  

 

Menchar

 

Maybe I'll turn into a linux/unix guy in my old age ...

0 Kudos
Message 2 of 4
(3,120 Views)
Oh my, I've offended some brave soul.  Why don't you grow a pair and engage in a dialogue?
0 Kudos
Message 3 of 4
(3,106 Views)
I thought so.
0 Kudos
Message 4 of 4
(3,049 Views)