WCF 命名管道:跨网络?真的吗?

发布于 2024-08-02 04:58:53 字数 470 浏览 0 评论 0原文

许多人似乎认为这是可能的,但显然在本文档中,边界声明为在我看来,进程间意味着“无网络”。

另一个文档完全明确:

命名管道传输的覆盖范围很小;它只能连接到同一台机器上运行的服务

那么为什么这里有这么多海报说它可以工作呢?

Many people seem to think this it is possible, yet clearly in this document the boundary is stated as inter-process which to my mind means "no network".

Another document is completely unambiguous:

The named pipe transport has very little reach; it can only connect to services running on the same machine

So why are so many posters here saying it can work?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

眼眸里的那抹悲凉 2024-08-09 04:58:53

我认为您需要区分命名管道和WCF绑定实现NETNamedPipeBinding

NetNamedPipeBinding 是 WCF 的预定义绑定,用于机器上的通信。

提供安全可靠的绑定,并针对机上通信进行了优化。

但是,如果您查看有关命名管道的 MSDN 文档 ,您可以看到可以跨网络设置命名管道。

命名管道可用于在同一计算机上的进程之间或通过网络的不同计算机上的进程之间提供通信

I think you need to make a distinction between Named Pipe and WCF binding implementation NETNamedPipeBinding.

The NetNamedPipeBinding is a predefined binding for WCF for on-machine communication.

Provides a secure and reliable binding that is optimized for on-machine communication.

But if you check the MSDN documentation about Named Pipes, you can see that it is possible to setup a named pipe across network.

Named pipes can be used to provide communication between processes on the same computer or between processes on different computers across a network

眼眸 2024-08-09 04:58:53

一般来说,命名管道在网络上工作。但是,通过将命名管道与 WCF 结合使用,您只能进行机器上的通信。这就是为什么您的第一个和最后一个链接都是正确的。

In general, named pipes work across the network. However, using named pipes with WCF, you're restricted to on-machine communications. That's why your first and last links are both correct.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文