iOS Guides | Samples

MonoTouch.NetworkExtension.NEPacketTunnelProvider Class

Provides sockets by creating NEPacketTunnelFlow objects.

See Also: NEPacketTunnelProvider

Syntax

[MonoTouch.Foundation.Register("NEPacketTunnelProvider", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 9, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.MacOSX, 10, 11, MonoTouch.ObjCRuntime.PlatformArchitecture.Arch64, null)]
public class NEPacketTunnelProvider : NETunnelProvider

Related content

Requirements

Namespace: MonoTouch.NetworkExtension
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.NetworkExtension.NEPacketTunnelProvider are listed below.

See Also: NETunnelProvider

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
PacketFlowNEPacketTunnelFlow. Gets the packet flow that receives IP packets and injects IP packets into the network.

Public Methods

CancelTunnel(NSError)
Cancels the tunnel with the specified error.
CreateTcpConnection(NWEndpoint, Boolean, NWTlsParameters, NWTcpConnectionAuthenticationDelegate) : NWTcpConnection
Creates a new tunneled TCP connection.
CreateUdpSession(NWEndpoint, NWHostEndpoint) : NWUdpSession
Creates a new tunneled UDP connection.
StartTunnel(NSDictionary, Action<MonoTouch.Foundation.NSError>)
Starts the tunnel.
StartTunnelAsync(NSDictionary) : Task
Starts the tunnel.
StopTunnel(NEProviderStopReason, Action)
Stops the Tunnel.
StopTunnelAsync(NEProviderStopReason) : Task
Stops the Tunnel.