다음을 통해 공유


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일 수 있습니다.

반환

특성

적용 대상