为什么 TCP 远程客户端需要监听?

发布于 2024-07-26 09:55:42 字数 102 浏览 1 评论 0原文

当远程客户端创建 TcpClientChannel 对象时,它会侦听(未指定的)端口。 做什么的?

与服务器的单个 tcp 连接已经是全双工的,那么为什么还要监听呢?

When a remoting client creates a TcpClientChannel object, it listens on an (unspecified) port. What for?

A single tcp connection to the server is already a full duplex, so why listen?

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

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

发布评论

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

评论(3

世界等同你 2024-08-02 09:55:42

TCP连接的客户端必须侦听连接的源端口,以接收从服务器发送到客户端的数据包。 TCP 连接涉及两个端口:源端口和目标端口。 通常只指定目的端口,源端口由操作系统分配。

The client of the TCP connection has to listen on the source port of the connection, to receive packets transmitted from the server to the client. There are two ports involved in a TCP connection, a source and a destination port. Usually only the destination port is specified, and the source port is just assigned by the OS.

叹梦 2024-08-02 09:55:42

我认为它会侦听传入的连接。 全双工与它有什么关系?

I presume it listens for incoming connections. What's full-duplex have to do with it?

吖咩 2024-08-02 09:55:42

我正在查看 MSDN TcpClientChannel 类example 和附近的 ServerChannel。 没有提及倾听客户。 请详细说明您的情况。

另一篇 .NET CodeGuru 文章介绍了简单远程处理安全远程处理
你可以用它来阐述你的观点。

I am looking at the MSDN TcpClientChannel Class example and the ServerChannel close by. There is no reference to listening clients. Please elaborate your case.

Another .NET CodeGuru article describes simple remoting and secure remoting.
You can use this to elaborate your point.

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