你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TcpRelayConnectionMode 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
现已弃用此 API。
描述 的连接 NetTcpRelayBinding模式。
[System.Obsolete]
public enum TcpRelayConnectionMode
[<System.Obsolete>]
type TcpRelayConnectionMode =
Public Enum TcpRelayConnectionMode
- 继承
-
TcpRelayConnectionMode
- 属性
字段
Hybrid | 1 | 通信通过Azure 服务总线基础结构中继,而客户端和服务终结点则协商彼此的直接套接字连接。 此直接连接的协调由 Azure 服务总线 云服务控制。 直接套接字连接算法能够在位于对立防火墙和 NAT 设备后面的两方之间建立直接连接。 该算法仅对防火墙遍历使用出站连接,并依赖于 NAT 遍历的相互端口预测算法。 由于 NAT 遍历算法依赖于非常狭窄的计时协调和对预期 NAT 行为的最佳猜测预测,因此对于客户端数量较少的家庭和小型企业方案,该算法往往具有非常高的成功率,并且对于较大的 NAT,其成功率会降低。 如果可以建立直接连接,则中继连接会自动升级到直接连接,而不会丢失消息或数据丢失。 如果无法建立直接连接,数据将继续流经 Azure 服务总线 中继。
|
Relayed | 0 | 所有通信都通过Azure 服务总线云中继。 受 SSL 保护的控制连接用于协商所有Client-Service通信流经的中继端到端套接字连接。 建立连接后,Azure 服务总线基础结构的作用非常类似于中继双向字节流的套接字转发器代理。 此模式还需要出站端口 819 进行 NAT 预测算法。 对于大多数个人防火墙产品,通过直接连接模式建立的出站套接字连接还需要用户授予一次性策略例外, (Windows 个人防火墙和其他产品通常会提示用户) 托管应用程序。 |