Edit

Share via


NEPacketTunnelProvider.CreateTcpConnection Method

Definition

Overloads

CreateTcpConnection(NWEndpoint, Boolean, NWTlsParameters, INWTcpConnectionAuthenticationDelegate)

Creates a new tunneled TCP connection.

CreateTcpConnection(NWEndpoint, Boolean, NWTlsParameters, NWTcpConnectionAuthenticationDelegate)
Obsolete.

Creates a new tunneled TCP connection.

CreateTcpConnection(NWEndpoint, Boolean, NWTlsParameters, INWTcpConnectionAuthenticationDelegate)

Creates a new tunneled TCP connection.

[Foundation.Export("createTCPConnectionThroughTunnelToEndpoint:enableTLS:TLSParameters:delegate:")]
public virtual NetworkExtension.NWTcpConnection CreateTcpConnection (NetworkExtension.NWEndpoint remoteEndpoint, bool enableTls, NetworkExtension.NWTlsParameters tlsParameters, NetworkExtension.INWTcpConnectionAuthenticationDelegate delegate);
abstract member CreateTcpConnection : NetworkExtension.NWEndpoint * bool * NetworkExtension.NWTlsParameters * NetworkExtension.INWTcpConnectionAuthenticationDelegate -> NetworkExtension.NWTcpConnection
override this.CreateTcpConnection : NetworkExtension.NWEndpoint * bool * NetworkExtension.NWTlsParameters * NetworkExtension.INWTcpConnectionAuthenticationDelegate -> NetworkExtension.NWTcpConnection

Parameters

remoteEndpoint
NWEndpoint

The remote endpoint for the connection.

enableTls
Boolean

Whether TLS is enabled.

tlsParameters
NWTlsParameters

TLS parameters, if TLS is enabled.

This parameter can be null.

delegate
INWTcpConnectionAuthenticationDelegate

Handler to run when the connection is created.

This parameter can be null.

Returns

Attributes

Applies to

CreateTcpConnection(NWEndpoint, Boolean, NWTlsParameters, NWTcpConnectionAuthenticationDelegate)

Caution

Use the overload accepting a 'INWTcpConnectionAuthenticationDelegate' argument.

Creates a new tunneled TCP connection.

[System.Obsolete("Use the overload accepting a 'INWTcpConnectionAuthenticationDelegate' argument.")]
public virtual NetworkExtension.NWTcpConnection CreateTcpConnection (NetworkExtension.NWEndpoint remoteEndpoint, bool enableTls, NetworkExtension.NWTlsParameters tlsParameters, NetworkExtension.NWTcpConnectionAuthenticationDelegate delegate);
abstract member CreateTcpConnection : NetworkExtension.NWEndpoint * bool * NetworkExtension.NWTlsParameters * NetworkExtension.NWTcpConnectionAuthenticationDelegate -> NetworkExtension.NWTcpConnection
override this.CreateTcpConnection : NetworkExtension.NWEndpoint * bool * NetworkExtension.NWTlsParameters * NetworkExtension.NWTcpConnectionAuthenticationDelegate -> NetworkExtension.NWTcpConnection

Parameters

remoteEndpoint
NWEndpoint

The remote endpoint for the connection.

enableTls
Boolean

Whether TLS is enabled.

tlsParameters
NWTlsParameters

TLS parameters, if TLS is enabled.

This parameter can be null.

delegate
NWTcpConnectionAuthenticationDelegate

Handler to run when the connection is created.

This parameter can be null.

Returns

Attributes

Applies to