NEPacketTunnelProvider.CreateUdpSession(NWEndpoint, NWHostEndpoint) 方法

定义

创建新的隧道 UDP 连接。

[Foundation.Export("createUDPSessionThroughTunnelToEndpoint:fromEndpoint:")]
public virtual NetworkExtension.NWUdpSession CreateUdpSession (NetworkExtension.NWEndpoint remoteEndpoint, NetworkExtension.NWHostEndpoint localEndpoint);
abstract member CreateUdpSession : NetworkExtension.NWEndpoint * NetworkExtension.NWHostEndpoint -> NetworkExtension.NWUdpSession
override this.CreateUdpSession : NetworkExtension.NWEndpoint * NetworkExtension.NWHostEndpoint -> NetworkExtension.NWUdpSession

参数

remoteEndpoint
NWEndpoint
localEndpoint
NWHostEndpoint

内容待定。

此参数可以为 null

返回

属性

适用于