NEPacketTunnelProvider.CreateTcpConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
Handler to run when the connection is created.
This parameter can be null
.
Returns
- Attributes