C# 3.5 - Connecting named pipe across network

前端 未结 3 511
悲&欢浪女
悲&欢浪女 2020-12-11 12:05

What is the correct way to setup a named pipe in C# across a network?

Currently I have two machines, \'client\' and \'server\'.

Server sets up its pipe in th

相关标签:
3条回答
  • 2020-12-11 13:05

    It is not possible to used named pipes between machines.

    "The WCF-NetNamedPipe adapter provides cross-process communication on the same computer"

    http://msdn.microsoft.com/en-us/library/bb226493.aspx

    0 讨论(0)
  • 2020-12-11 13:09

    You need to set permissions on the NamedPipeServerStream so that the client will have permissions to access the pipe.

    I would look at the SetAccessControl method of your NamedPipeServerStream.

    0 讨论(0)
  • 2020-12-11 13:09

    Look in the System.Runtime.Remoting namespace. IIRC, named pipes are one option for the protocol used by remoting channels.

    0 讨论(0)
提交回复
热议问题