Instance Property

connection

An NEVPNConnection object that is used to control the VPN tunnel specified by the VPN configuration.

Declaration

@property(readonly) NEVPNConnection *connection;

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.