How to make WCF with the name pipe address equal to WinApi?

I noticed that WCF named pipe address

net.pipe://localhost/mynamedpipe

and Windows API

\\.\pipe\mynamedpipe

do not collide. Why is this? How can I get them to point to the same channel?

+3
source share
3 answers

There is no documented way to do this. After several tests, I came to the following conclusions:

If you have a WCF server and a Win32 C ++ client, the latter will see the first address as a UUID in the following format:

12345678-1234-1234-1234-123456789abc

And this UUID seems random, as it changes for the same WCF address every time the server starts.

, WCF- Win32 ++ GUID, , , , WCF.

.

EDIT , FileMapping. , , - base64 NetNamedPipe.

+4

WCF- Stephen Cleary. , WCF Win32.

WCF, "Net",.NET-. ( AFAIK), .

-, ( ?), Sysinternals. , WCF ...

+2

, , - .

WCF (, netNamedPipeBinding )... WCF- , .

0

Source: https://habr.com/ru/post/1766449/


All Articles