Class

NEVPNConnection

An object to start and stop a Personal VPN connection and get its status.

Declaration

@interface NEVPNConnection : NSObject

Overview

NEVPNConnection objects are not instantiated directly. Instead, each NEVPNManager object has an associated NEVPNConnection object as a read-only property.

The NEVPNConnection class provides methods for starting and stopping the VPN programmatically. The other way that the VPN can be started and stopped is through VPN On Demand. See the onDemandRules property in NEVPNManager and NEOnDemandRule.

Instances of this class are thread safe.

Topics

Controlling the VPN Connection

- startVPNTunnelAndReturnError:

Start the process of connecting the VPN

- startVPNTunnelWithOptions:andReturnError:

Start the process of connecting the VPN

- stopVPNTunnel

Start the process of disconnecting the VPN.

Getting VPN Connection Status

status

The current status of the VPN connection

connectedDate

The date and time when the connection status changed to NEVPNStatusConnected.

Notifications

NEVPNStatusDidChangeNotification

Posted when the status of the VPN connection changes.

Relationships

Inherits From