C# 3.5 - Connecting named pipe across network

前端 未结 3 527
悲&欢浪女
悲&欢浪女 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: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.

提交回复
热议问题