connection
An Nevpnconnection object that is used to control the VPN tunnel specified by the VPN configuration.
Declaration
var connection: NEVPNConnection { get }Discussion
The connection object is used to manually start and stop the VPN tunnel, and introspect the current status of the VPN tunnel. If the VPN configuration does not exist in the Network Extension preferences then the connection’s status is set to NEVPNStatusInvalid.